-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in CurrencyInputFormatter #92
Comments
Thanks. I'll check it |
I could not reproduce this (maybe because of a difference environment) but I've found out that it throws an "out of range exception" in this code when I press period at the end of the line: return oldValue.copyWith(
selection: TextSelection.collapsed(
offset: oldCaretIndex + 1,
),
); Maybe it was the reason of the bug you've described. So I've replaced the code with this return oldValue.copyWith(
selection: TextSelection.collapsed(
offset: min(
oldValue.text.length,
oldCaretIndex + 1,
),
),
); And the exception has gone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CurrencyInputFormatter(thousandSeparator: ThousandSeparator.Space, mantissaLength: 0, trailingSymbol: " $")
mantissaLength is 0 and if I tap on dot TextField stops reaction on any typing.
The text was updated successfully, but these errors were encountered: