Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when using MoneyMaskedTextController on TextFormField #10

Open
fernandosutter opened this issue May 11, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@fernandosutter
Copy link

When i use this basic money controller in a TextFormField:

MoneyMaskedTextController moneyController = MoneyMaskedTextController(leftSymbol: 'R\$');

TextFormField(controller: moneyController)

I get this error when the field is empty:

Exception has occurred.
RangeError (RangeError: Value not in range: -1)

After this, the there is some value on the field, there is another error:

Exception has occurred.
FormatException (FormatException: Invalid radix-10 number (at character 1)
R$5.555,554
^
)

In debug console, nothing appers

@LeandroNovak LeandroNovak added the bug Something isn't working label May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants