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

is any options to enable or disable formatting data? #22

Closed pishguy closed 3 years ago

pishguy commented 3 years ago

in this code i try to enable or disable formatter on textformField, but i can't


formatter = false;

formatter?
        CurrencyTextInputFormatter(
                  locale: 'en',
                  decimalDigits: 0,
                  symbol: ',',
                )
        :null /* nothing*/,
gtgalone commented 3 years ago

@MahdiPishguy Thank you for using!

I think you should use setState for managing formatter state.

It could be toggle formatter.