Register Impl
This commit is contained in:
@@ -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