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

Invalid double in numberValue when delete value in TextFormField #39

Closed
hassanbht opened this issue Sep 16, 2019 · 4 comments
Closed

Invalid double in numberValue when delete value in TextFormField #39

hassanbht opened this issue Sep 16, 2019 · 4 comments

Comments

@hassanbht
Copy link

Hello,
I'm getting this error in my MoneyMaskedTextController when clear TextFormField
error : Type (FormatException) "Invalid double"

double get numberValue {
List parts = _getOnlyNumbers(this.text).split('').toList(growable: true);
parts.insert(parts.length - precision, '.'); // value : "."
return double.parse(parts.join());
}

@x4080
Copy link

x4080 commented Jan 15, 2020

Hi, @hassanbht

How do you solve this problem >?

@phungrk
Copy link

phungrk commented Feb 1, 2020

@x4080

#24

@joaovirgili
Copy link

I'm getting this error when calling clear() on MoneyMaskedTextController:

The following RangeError was thrown while dispatching notifications for MoneyMaskedTextController:
Invalid value: Only valid value is 0: -2

@denyjav
Copy link

denyjav commented Sep 25, 2020

Were you able to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants