-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
RangeError: Invalid value: Not in range 0..1, inclusive: -1 #38
Comments
gilvangobbato
changed the title
RangeError: Invalid value: Not in range 0..1, inclusive: -1
RangeError: Invalid value: Not in range 0..1, inclusive: -1 #bug
Aug 22, 2019
gilvangobbato
changed the title
RangeError: Invalid value: Not in range 0..1, inclusive: -1 #bug
RangeError: Invalid value: Not in range 0..1, inclusive: -1 [bug]
Aug 22, 2019
gilvangobbato
changed the title
RangeError: Invalid value: Not in range 0..1, inclusive: -1 [bug]
RangeError: Invalid value: Not in range 0..1, inclusive: -1
Aug 22, 2019
Hi @gilvangobbato, I think the solution is to add condition :
to
@benhurott maybe you can update it in the widget ? |
Correct
|
Replace to this
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hello,
I'm getting this error in my MoneyMaskedTextController with precision: 2.
The error occurs when I go out of the TextField with less than 2 digits, for example: my mask is from Brazilian real R$ 0,00, if I type only 5 cents and go out of the TextFiel, I get this error.
For example:
In this example, when I press the ritgh button, the error occurs.
My controller:
Debuging, the error appears occurs in this point on the "flutter_masked_text.dart":
I think that is because the parts.length - precision = -1, so, the throw occurs
Thanks
The text was updated successfully, but these errors were encountered: