Skip to content

Commit

Permalink
fix: Support country codes when number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique-lozano committed Jul 14, 2024
1 parent 42fd410 commit 5261b82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class UINumberFormatter {

List<TextSpan> getTextSpanList(BuildContext context) {
final String decimalSep =
numberFormatSymbols[Intl.defaultLocale]?.DECIMAL_SEP;
numberFormatSymbols[Intl.defaultLocale?.replaceAll('-', '_') ?? 'en']
?.DECIMAL_SEP;

final valueFontSize = (integerStyle.fontSize ??
DefaultTextStyle.of(context).style.fontSize) ??
Expand Down

0 comments on commit 5261b82

Please sign in to comment.