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

formatter value reset to `initialValue` after the the next following step using `Stepper` #37

Closed jmarrr closed 2 years ago

jmarrr commented 2 years ago

Hi, Whenever I go to the next step after I inputted the value on the TextFormField the formatter.getUnformattedValue().toInt() returns the expected value however when I go to the next step the formatter value resets back to the intialValue it doesn't keep the input value. How do I keep the value on Stepper?

Example snippet https://pastebin.com/ULWBxnpD

gtgalone commented 2 years ago

Hello @jmarrr !

Of course. If you want your state to persist, Could you check it out?

https://stackoverflow.com/questions/63460629/flutter-get-data-from-stepper-textfields