menu page

This commit is contained in:
Efril
2026-01-16 13:27:09 +07:00
parent 82e1f93cce
commit 44d48d41d4
17 changed files with 1090 additions and 316 deletions
+4
View File
@@ -1,5 +1,9 @@
import '../../sample/sample_data.dart';
class AppConstant {
static const String appName = "Enaklo";
static const String coinName = "EnakCoin";
static const String poinName = "EnakPoin";
}
MerchantModel merchant = merchants.first;
+11
View File
@@ -0,0 +1,11 @@
class Service {
Service({required this.name, required this.description});
final String name;
final String description;
}
List<Service> services = [
Service(name: 'Dine In', description: 'Makan langsung di tempat'),
Service(name: 'Take Away', description: 'Pesan dan bawa pulang'),
];
@@ -0,0 +1,28 @@
part of 'extension.dart';
extension DoubleExt on double {
String get currencyFormatRpV2 => NumberFormat.currency(
locale: 'id',
symbol: 'Rp ',
decimalDigits: 0,
).format(this);
}
extension StringX on String {
String get currencyFormatRp {
final parsedValue = int.tryParse(this) ?? 0;
return NumberFormat.currency(
locale: 'id',
symbol: 'Rp ',
decimalDigits: 0,
).format(parsedValue);
}
}
extension IntegerExt on int {
String get currencyFormatRp => NumberFormat.currency(
locale: 'id',
symbol: 'Rp ',
decimalDigits: 0,
).format(this);
}
+1
View File
@@ -3,6 +3,7 @@ import 'package:intl/intl.dart';
import '../../domain/auth/auth.dart';
part 'date_extension.dart';
part 'currency_extension.dart';
extension StringExt on String {
CheckPhoneStatus toCheckPhoneStatus() {