gtgalone / currency_text_input_formatter

Currency Text Input Formatter for Flutter.
https://pub.dev/packages/currency_text_input_formatter
MIT License
50 stars 29 forks source link

Cannot parse text to num in TextEditingController #42

Closed Lazizbek97 closed 1 year ago

Lazizbek97 commented 1 year ago

I have added the formatter to textformfield, but when i try to parse the controller.text, it fails. reason: I cannot remove empty space inside numbers. What is the problem? How can i remove empty spaces and parse it to number?

gtgalone commented 1 year ago

Hello @Lazizbek97

Maybe you can use built-in methods.

https://github.com/gtgalone/currency_text_input_formatter#with-built-in-methods