-
Notifications
You must be signed in to change notification settings - Fork 74
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
CurrencyInputFormatter automatically appends zeros #107
Comments
Can you provide a minimum reproduction code? |
|
[√] Flutter (Channel stable, 3.3.9, on Microsoft Windows [Version 10.0.22000.1219], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [√] Chrome - develop for the web [!] Visual Studio - develop for Windows (Visual Studio Professional 2022 17.4.1) [√] Android Studio (version 2021.3) [√] VS Code (version 1.73.1) [√] Connected device (4 available) [√] HTTP Host Availability |
Running on sdk gphone64 x86 64 |
To reitterate, using the code above, I enter 3, and immediately it updates the control to 3.00 and I cannot enter more digits unless I backspace or manually select into the value. Setting mantissa 0 just makes it 3 with nothing after and I still cannot enter values. |
@caseyryan what do you think? |
I think it's a problem of Flutter itself. They add some bugs periodically and then fix them. I couldn't reproduce this |
Would you mind showing me how yours behaves, or describing it? And please
leave this issue open I would like to know if others are having this
issue. I suspect some are due to the reacts.
…On Thu, Dec 15, 2022 at 10:38 PM Konstantin Serov ***@***.***> wrote:
I think it's a problem of Flutter itself. They add some bugs periodically
and then fix them. I couldn't reproduce this
—
Reply to this email directly, view it on GitHub
<#107 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABZ5B5KX4I3BRXNF2JKVTDWNPW2PANCNFSM6AAAAAASTRPLJ4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I've finally found time to test it today. It was not a problem of Flutter but a problem of one of my other changes. Kinda side effect. Fixed in 2.9.14 |
Upgraded from MoneyInputFormatter to CurrencyInput formatter, and discovered this issue:
When the user enters a value into a field using CurrencyInputFormatter, the field automatically adds the decimal place and two zeros. Further input by the user does not change the field.
Example: User wants to enter in 3.45. When they enter "3" the field changes to 3.00, and when they enter 4, nothing changes. They have to select into the string after the decimal place to enter in values.
Using version 2.9.11
The text was updated successfully, but these errors were encountered: