This commit is contained in:
2026-03-20 19:35:45 +03:00
parent 3f84d49472
commit 0793a86ebb
3 changed files with 290 additions and 131 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import '../../core/constants.dart';
String formatAmount(String symbol, double amount, AmountFormat fmt) {
// Symbols that need a space after them (prefix symbols like Br, ₽ etc.)
const spaceAfter = {'Br', ''};
const spaceAfter = {'Br'};
final formatted = fmt.format(amount);
final sep = spaceAfter.contains(symbol) ? ' ' : '';
return '$symbol$sep$formatted';