This commit is contained in:
2026-03-26 00:57:25 +03:00
parent 71de991587
commit 8ba9ae0b9f
9 changed files with 64 additions and 54 deletions
+2 -5
View File
@@ -1,10 +1,7 @@
import '../../core/constants.dart';
String formatAmount(String symbol, double amount, AmountFormat fmt) {
const spaceAfter = {'Br'};
final formatted = fmt.format(amount);
// For BYN, symbol is empty string, so we use 'Br' for text-only contexts like CSV
final displaySymbol = symbol.isEmpty ? 'Br' : symbol;
final sep = spaceAfter.contains(displaySymbol) ? ' ' : '';
return '$displaySymbol$sep$formatted';
if (symbol.isEmpty) return formatted;
return '$symbol$formatted';
}
+2 -2
View File
@@ -14,9 +14,9 @@ class BynSign extends StatelessWidget {
'\uE901',
style: TextStyle(
fontFamily: 'BynSymbol',
fontSize: fontSize,
fontSize: fontSize * 1.1,
color: color,
fontWeight: FontWeight.w700,
fontWeight: FontWeight.w900,
height: 1.0,
),
),