Skip to content

Commit 49d83a1

Browse files
authored
fixed-alarm-date-picker-ui (#773)
1 parent 0665026 commit 49d83a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/app/modules/addOrUpdateAlarm/controllers/add_or_update_alarm_controller.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,13 @@ class AddOrUpdateAlarmController extends GetxController {
12411241
selectedDate.value = (await showDatePicker(
12421242
builder: (BuildContext context, Widget? child) {
12431243
return Theme(
1244-
data: ThemeData.dark().copyWith(
1244+
data: themeController.currentTheme.value == ThemeMode.light
1245+
? ThemeData.light().copyWith(
1246+
colorScheme: const ColorScheme.light(
1247+
primary: kprimaryColor,
1248+
),
1249+
)
1250+
: ThemeData.dark().copyWith(
12451251
colorScheme: const ColorScheme.dark(
12461252
primary: kprimaryColor,
12471253
),

0 commit comments

Comments
 (0)