flutter_pattern_formatter
flutter_pattern_formatter copied to clipboard
Users lose their input if they try to type a second decimal separator
Not sure if relevant but I'm using a Locale where decimal separators are ,
eg: 12.345,67
Steps to reproduce:
- Simple Text field with a
ThousandsFormatter(allowFraction: true)
input formatter. - Type
12345,67
which renders as12.345,67
- Continue by typing
,
Expected:
- You see
12345,67
Actual:
- You see
0,
As it happens, I needed to do some other formatting and I fixed this by adding a formatter before ThousandsFormatter, which makes sure that a second ,
is not possible to type.
I also can duplicate this same issue as @andreidiaconu but in my case, I use the period . to separate decimals.
I'm still having this issue as well.