Misbehave when minValue is Int and decimals are enabled
marinofelipe opened this issue · comments
What problems I want to solve?
When the CurrencyTextFieldDelegate is constructed with a formatter that hasDecimals = true
and minValue
as an integer (e.g. 1), the first inserted number is not taken into account, and the field text gets formatted to the min value. This happens because the first inserted number would be the last decimal number, which is less than the min value.
0.05
< 1.00
.