Skip to content
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

I need help modifying NumberTextInputFormatter to temporarily hide the decimal part of the number while the user is typing. #16

Open
KunNew opened this issue Jan 3, 2025 · 0 comments

Comments

@KunNew
Copy link

KunNew commented Jan 3, 2025

I need help modifying NumberTextInputFormatter to temporarily hide the decimal part of the number while the user is typing. The goal is to only display the integer part during input and then reapply the decimal part if necessary. Can someone guide me on how to implement this?

CurrencyTextInputFormatter(
integerDigits: 10,
decimalDigits: 2,
decimalSeparator: '.',
groupDigits: 3,
groupSeparator: ',',
allowNegative: false,
overrideDecimalPoint: true,
insertDecimalPoint: false,
insertDecimalDigits: true,
),

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant