Skip to content

Commit 5834597

Browse files
Sam1kumarTusharFA
authored andcommitted
fix(format-value): fix formatting in case of international and isCompact false
1 parent 5e49385 commit 5834597

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/utils/utils.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ String formatValue(double value,
6060
} else {
6161
if (!isCompact) {
6262
if (decimalPlaces > 0) {
63-
final formatter = NumberFormat(
64-
"##,##,###.0${_getHashForDecimalPlaces(decimalPlaces)}");
63+
final formatter =
64+
NumberFormat("###,###.0${_getHashForDecimalPlaces(decimalPlaces)}");
6565
return formatter.format(value);
6666
} else {
67-
final formatter = NumberFormat("##,##,###");
67+
final formatter = NumberFormat("###,###");
6868
return formatter.format(value);
6969
}
7070
}

0 commit comments

Comments
 (0)