We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0665026 commit 49d83a1Copy full SHA for 49d83a1
lib/app/modules/addOrUpdateAlarm/controllers/add_or_update_alarm_controller.dart
@@ -1241,7 +1241,13 @@ class AddOrUpdateAlarmController extends GetxController {
1241
selectedDate.value = (await showDatePicker(
1242
builder: (BuildContext context, Widget? child) {
1243
return Theme(
1244
- data: ThemeData.dark().copyWith(
+ data: themeController.currentTheme.value == ThemeMode.light
1245
+ ? ThemeData.light().copyWith(
1246
+ colorScheme: const ColorScheme.light(
1247
+ primary: kprimaryColor,
1248
+ ),
1249
+ )
1250
+ : ThemeData.dark().copyWith(
1251
colorScheme: const ColorScheme.dark(
1252
primary: kprimaryColor,
1253
),
0 commit comments