Skip to content

Commit 45de690

Browse files
committed
change in bottom sheet color
#191919 it's the color
1 parent 6445362 commit 45de690

File tree

3 files changed

+40
-43
lines changed

3 files changed

+40
-43
lines changed

lib/app/modules/home/views/home_page_floating_action_button.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class HomePageFloatingActionButton extends StatelessWidget {
2929
),
3030
onPressed: () => (controller.taskchampion.value)
3131
? (showModalBottomSheet(
32+
backgroundColor: tColors.dialogBackgroundColor,
3233
context: context,
3334
isScrollControlled: true,
3435
shape: const RoundedRectangleBorder(
@@ -47,6 +48,7 @@ class HomePageFloatingActionButton extends StatelessWidget {
4748
}
4849
}))
4950
: (showModalBottomSheet(
51+
backgroundColor: tColors.dialogBackgroundColor,
5052
context: context,
5153
isScrollControlled: true,
5254
shape: const RoundedRectangleBorder(

lib/app/utils/constants/taskwarrior_colors.dart

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,27 @@ class TaskWarriorColors {
4141
static Color kLightPrimaryDisabledTextColor = const Color(0xffACACAB);
4242
static Color kLightDialogBackGroundColor = Colors.white;
4343
static TaskwarriorColorTheme darkTheme = TaskwarriorColorTheme(
44-
dialogBackgroundColor: kdialogBackGroundColor,
45-
primaryBackgroundColor: kprimaryBackgroundColor,
46-
primaryDisabledTextColor: kprimaryDisabledTextColor,
47-
primaryTextColor: kprimaryTextColor,
48-
secondaryBackgroundColor: ksecondaryBackgroundColor,
49-
secondaryTextColor: ksecondaryTextColor,
50-
dividerColor: const Color.fromARGB(255, 192, 192, 192),
51-
purpleShade: deepPurpleAccent,
52-
greyShade: grey,
53-
icons: Icons.dark_mode,
54-
dimCol: const Color.fromARGB(137, 248, 248, 248)
55-
);
44+
dialogBackgroundColor: Color.fromARGB(255, 25, 25, 25),
45+
primaryBackgroundColor: kprimaryBackgroundColor,
46+
primaryDisabledTextColor: kprimaryDisabledTextColor,
47+
primaryTextColor: kprimaryTextColor,
48+
secondaryBackgroundColor: ksecondaryBackgroundColor,
49+
secondaryTextColor: ksecondaryTextColor,
50+
dividerColor: const Color.fromARGB(255, 192, 192, 192),
51+
purpleShade: deepPurpleAccent,
52+
greyShade: grey,
53+
icons: Icons.dark_mode,
54+
dimCol: const Color.fromARGB(137, 248, 248, 248));
5655
static TaskwarriorColorTheme lightTheme = TaskwarriorColorTheme(
57-
dialogBackgroundColor: kLightDialogBackGroundColor,
58-
primaryBackgroundColor: kLightPrimaryBackgroundColor,
59-
primaryDisabledTextColor: kLightPrimaryDisabledTextColor,
60-
primaryTextColor: kLightPrimaryTextColor,
61-
secondaryBackgroundColor: kLightSecondaryBackgroundColor,
62-
secondaryTextColor: kLightSecondaryTextColor,
63-
dividerColor: kprimaryBackgroundColor,
64-
purpleShade: deepPurple,
65-
greyShade: lightGrey,
66-
icons: Icons.light_mode,
67-
dimCol: const Color.fromARGB(136, 17, 17, 17)
68-
);
56+
dialogBackgroundColor: kLightDialogBackGroundColor,
57+
primaryBackgroundColor: kLightPrimaryBackgroundColor,
58+
primaryDisabledTextColor: kLightPrimaryDisabledTextColor,
59+
primaryTextColor: kLightPrimaryTextColor,
60+
secondaryBackgroundColor: kLightSecondaryBackgroundColor,
61+
secondaryTextColor: kLightSecondaryTextColor,
62+
dividerColor: kprimaryBackgroundColor,
63+
purpleShade: deepPurple,
64+
greyShade: lightGrey,
65+
icons: Icons.light_mode,
66+
dimCol: const Color.fromARGB(136, 17, 17, 17));
6967
}

lib/app/utils/themes/dark_theme.dart

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,20 @@ import 'package:flutter/material.dart';
22
import 'package:taskwarrior/app/utils/constants/constants.dart';
33

44
ThemeData darkTheme = ThemeData(
5-
brightness: Brightness.dark,
6-
dialogBackgroundColor: TaskWarriorColors.kdialogBackGroundColor,
7-
colorScheme: ColorScheme(
85
brightness: Brightness.dark,
9-
primary: TaskWarriorColors.white,
10-
onPrimary: TaskWarriorColors.black,
11-
secondary: TaskWarriorColors.grey,
12-
onSecondary: TaskWarriorColors.white,
13-
error: TaskWarriorColors.red,
14-
onError: TaskWarriorColors.black,
15-
surface: TaskWarriorColors.black,
16-
onSurface: TaskWarriorColors.white,
17-
),
18-
timePickerTheme: TimePickerThemeData(
19-
dayPeriodColor: TaskWarriorColors.lightGrey
20-
),
21-
extensions: [
22-
TaskWarriorColors.darkTheme
23-
]
24-
);
6+
colorScheme: ColorScheme(
7+
brightness: Brightness.dark,
8+
primary: TaskWarriorColors.white,
9+
onPrimary: TaskWarriorColors.black,
10+
secondary: TaskWarriorColors.grey,
11+
onSecondary: TaskWarriorColors.white,
12+
error: TaskWarriorColors.red,
13+
onError: TaskWarriorColors.black,
14+
surface: TaskWarriorColors.black,
15+
onSurface: TaskWarriorColors.white,
16+
),
17+
timePickerTheme:
18+
TimePickerThemeData(dayPeriodColor: TaskWarriorColors.lightGrey),
19+
extensions: [TaskWarriorColors.darkTheme],
20+
dialogTheme:
21+
DialogThemeData(backgroundColor: Color.fromARGB(255, 25, 25, 25)));

0 commit comments

Comments
 (0)