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

Adding dot at the beginning of a negative number less than 1,000 #17

Open
REU8ER opened this issue Jun 6, 2021 · 0 comments
Open

Adding dot at the beginning of a negative number less than 1,000 #17

REU8ER opened this issue Jun 6, 2021 · 0 comments

Comments

@REU8ER
Copy link

REU8ER commented Jun 6, 2021

When working with MoneyMaskedTextController I noticed that when I draw on the screen a text coming from my controller that has a negative initial value less than 1,000 it adds a point between the minus sign and the value.
As a solution for my project I use a replaceFirst to replace the '-.' for '-'

Value before entering controller = -397.5

This is the print of my controller
MoneyMaskedTextController#439e6(TextEditingValue(text: ┤R$ -.397,50├, selection: TextSelection(baseOffset: 11, extentOffset: 11, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1)))

This is what renders on screen
R$ -.397,50

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