-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
It would be nice if the TextFormField could support the correct localization set on the APP.
For example, if the double value is 10.12:
- on "it-IT" localization, the input should show the string "10,12" and accept the character "," as decimal separator
- on "en-GB" localization, the input should show the string "10.12" and accept the character "." as decimal separator (Exactly how it's working right now)
Here a quick example to obtaine the correct decimal separator from current locale:
final locale = Localizations.localeOf(context).toString();
final format = NumberFormat.decimalPattern(locale);
final desiredCharacter = format.symbols.DECIMAL_SEP;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels