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

Start value #18

Closed netgfx closed 3 years ago

netgfx commented 3 years ago

hello, I have

TextFormField(
    inputFormatters: [CurrencyTextInputFormatter(locale: "en_US", decimalDigits: 2, symbol: "")],
    keyboardType: TextInputType.numberWithOptions(decimal: true)
    );

and when I type 1 it goes to 0.01 is there a way to start from 1 and only if I press , to add a decimal? It feels very unnatural to start from 0.01 cent

gtgalone commented 3 years ago

@netgfx Thank you for using.

This library supports only right start, because of currency.

You should useRegExp instead.