checkout page

This commit is contained in:
efrilm
2025-10-27 15:27:21 +07:00
parent 9e5a6cc7ae
commit b8eefcbac0
11 changed files with 1234 additions and 77 deletions
@@ -11,6 +11,21 @@ extension StringX on String {
.join(' ');
}
int get toIntegerFromText {
final cleanedText = replaceAll(RegExp(r'[^0-9]'), '');
final parsedValue = int.tryParse(cleanedText) ?? 0;
return parsedValue;
}
String get currencyFormatRpV2 {
final parsedValue = int.tryParse(this) ?? 0;
return NumberFormat.currency(
locale: 'id',
symbol: 'Rp ',
decimalDigits: 0,
).format(parsedValue);
}
TableStatusType toTableStatusType() {
switch (this) {
case 'available':