gtgalone/currency_text_input_formatter

Start value

netgfx opened this issue · 1 comments

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

@netgfx Thank you for using.

This library supports only right start, because of currency.

You should useRegExp instead.