save before flutter upgrade

This commit is contained in:
Abraham
2025-07-15 16:40:14 -07:00
commit 813c586a1c
197 changed files with 11144 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
String moneyFormat3Decimals(double x) {
List<String> parts = x.toString().split('.');
RegExp re = RegExp(r'\B(?=(\d{3})+(?!\d))');
parts[0] = parts[0].replaceAll(re, ',');
if (parts.length == 1) {
parts.add('00');
} else {
parts[1] = parts[1].padRight(3, '0').substring(0, 3);
}
return parts.join('.');
}