Register Impl

This commit is contained in:
efrilm
2025-09-18 08:48:36 +07:00
parent cee78e179b
commit 0ea1a6fa56
13 changed files with 265 additions and 108 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ extension DateTimeIndonesia on DateTime {
/// Format: 13-08-2025
String get toServerDate {
return DateFormat('dd-MM-yyyy', 'id_ID').format(this);
return DateFormat('yyyy-MM-dd', 'id_ID').format(this);
}
/// Format jam: 14:30
+22
View File
@@ -16,6 +16,28 @@ class ThemeApp {
fontFamily: FontFamily.quicksand,
primaryColor: AppColor.primary,
scaffoldBackgroundColor: AppColor.white,
datePickerTheme: DatePickerThemeData(
backgroundColor: AppColor.white,
todayBackgroundColor: MaterialStateProperty.resolveWith<Color?>((states) {
if (states.contains(MaterialState.selected)) {
return AppColor.primary; // warna background tanggal terpilih
}
return null; // default
}),
todayBorder: BorderSide(color: AppColor.primary, width: 1),
dayBackgroundColor: MaterialStateProperty.resolveWith<Color?>((states) {
if (states.contains(MaterialState.selected)) {
return AppColor.primary; // warna background tanggal terpilih
}
return null; // default
}),
dayForegroundColor: MaterialStateProperty.resolveWith<Color?>((states) {
if (states.contains(MaterialState.selected)) {
return AppColor.white; // warna text tanggal terpilih
}
return null; // default
}),
),
appBarTheme: AppBarTheme(
backgroundColor: AppColor.white,
foregroundColor: AppColor.textPrimary,