Register Impl
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user