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

Supporting format for double values #47

Closed lmanerich closed 1 year ago

lmanerich commented 1 year ago

When trying to use the input switching between screens, restoring the value from a double with not enought decimal numbers results in the formatter dividing the value by 10.

For instance: value = 15.3 currencyFormatter.format(value.toString()) // with decimalPlaces: 2 currencyFormatter.getFormattedValue() // will output 1.53

gtgalone commented 1 year ago

Thank you so much @lmanerich !

Now you can use this feature with v2.1.10

Please update your package version.

:)