Giter Site home page Giter Site logo

flutter-textfield-mask's People

Contributors

danilocoppi avatar felipefernandesleandro avatar jonatasdevbr avatar zeucxb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter-textfield-mask's Issues

Pub.Dev currency example is not real life or user friendly example.

Screenshot_20240209_124520 1

In case the image did not come through...
On my Android. Your PUB.DEV currency example produces:
$0,022.22 type of final format. And does not let you back over all the digits to start from scratch.
I believe that one of the desired behaviors would be to start the cursor at the left. I turned off reverse and then it doesn't recognize the decimal input.
Maybe not a bug... But the Example should at very least be of a real life currency display. Such as $22.22

Escape 9 in mask

How could i escape 9 in mask?
For example i use
`String str ='T\\9-99';
result

i found how to fix it, code, after _tags.add({_type: _fixChar, _value: mask[i + 1]}); i added i++; and this worked for me

Double typing issue in Flutter 2

input double values when typing. The issue was on some keyboards. ( latest keyboard in MI / ONE PLUS or custom keyboard - sample custom keyboard app)

com.jugaadsoft.removeunwantedobject_113087381-20550f00-9201-11eb-9674-b2784e4d8124.mp4

Code

  final maskFormatter = TextInputMask(mask: 'AAAAA-9999-A');

TextFormField(
          inputFormatters: [maskFormatter]
),

reverse@1636313728 has not been initialized.

mask.clearMask(text) throws error;

 String text = '432516565';
  MagicMask mask = MagicMask.buildMask('\\+99 (99) 99999-9999');
  String formattedString = mask.clearMask(text);
═══════ Exception caught by gesture ═══════════════════════════════════════════
The following LateError was thrown while handling a gesture:
LateInitializationError: Field '_reverse@1636313728' has not been initialized.

When the exception was thrown, this was the stack
#0      MagicMask._reverse (package:easy_mask/src/magic_mask.dart)
#1      MagicMask.clearMask (package:easy_mask/src/magic_mask.dart:203:20)

Money negative

How to permit positive and negative numbers ?
like:
1.234,56
-1.234,56

Issue ao digitar mais que o tamanho total da mascara

Por exemplo... se eu tenho uma mascara de cpf, ficará assim: 222.222.222-22
São 11 números 2. Se eu apertei mais umas 5 vezes, serão 16. A mascara fica ok mas ao apagar, nada muda.
Teria que apertar o apagar as 5 vezes até chegar ao último caractere da mascara e ai sim começar a apagar.

README issue

  • Import section can be import 'package:easy_mask/easy_mask.dart';

There are few places the import section has been written as
import package:easy_mask/text_input_mask.dart
But it would be easier to copy and paste this section like
import 'package:easy_mask/easy_mask.dart';

  • some TextInputMask are missing parenthesis on code-snippet

_overflow has not been initialized

I've got the following error on package:easy_mask/src/magic_mask.dart

LateInitializationError: Field '_overflow@1678313728' has not been initialized.

Stacktrace:
MagicMask._buildResultJson\npackage:easy_mask/src/magic_mask.dart 159:14
MagicMask._overflow\npackage:easy_mask/src/magic_mask.dart 354:19

getMaskedString não está funcionando

Vou escrever em português mesmo, já que vi que são brasileiros.

To tentando usar o magickMask (que apropósito acho que seria magic, sem o k, não? O getAdvancedMaskedStrign ta escrito errado tb rs Strign ao invés de String).

Já tentei de tudo, mas não funciona.

final magicMask = TextInputMask(
    mask: '9+.999.999,99',
    placeholder: '0',
    maxPlaceHolders: 3,
    reverse: true,
    maxLength: 14,
 ).magickMask();

magicMask.getMaskedString('10500'); // Retorna os mesmos 10500 sem formatação

magicMask.getAdvancedMaskedStrign('10500' 14, '0', 3) // Erro

MagicMask.buildMask('9+.999.999,99').getMaskedString('10500') // Retorna os mesmos 10500 sem formatação

Não sei mais oq tentar rs, queria usar essa lib. O formatter é bem bacana, só o magic que não ta rolando mesmo.

Error formatting "money" in x.getMaskedString

String text = '656500';
    MagicMask mask = MagicMask.buildMask('R\$! !9+.999,99');
    print(mask.getMaskedString(text));
    //R$: 656500

it should come out like this:
R$: 6.565,00
but it comes out like this:
R$: 656500

Any way to remove mask?

.text will get the string with mask. is there any way to get only the value without mask?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.