gtgalone / currency_text_input_formatter

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

negative amount #26

Closed kgabol closed 2 years ago

kgabol commented 2 years ago

getUnformattedValue does not return negative amount when negative amount was entered.

gtgalone commented 2 years ago

@kgabol Thank you for reporting this issue!

I have just published with fixing this issue.

Please use new release 2.1.4!

Thank you again :)

jahoefne commented 2 years ago

@gtgalone

The fix seems to have broken a use case that worked for me before. I used the .format Method to format Currency-Values for display-purposes.

before the change .format("-2000") => "-200.00€" now "200.00€"

gtgalone commented 2 years ago

@jahoefne Thank you for your comment.

I have just published with it.

So please use 2.1.5 :)