Skip to content

Commit 1d4a21a

Browse files
[Fix] - Icon colour of dialog box
1 parent e99b8b1 commit 1d4a21a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/views/home/home.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,13 @@ class _HomePageState extends State<HomePage> {
133133
),
134134
endDrawer: FilterDrawer(filters),
135135
floatingActionButton: FloatingActionButton(
136-
child: Icon(Icons.add),
136+
backgroundColor:
137+
AppSettings.isDarkMode ? Colors.white : Palette.kToDark.shade200,
138+
child: Icon(
139+
Icons.add,
140+
color:
141+
AppSettings.isDarkMode ? Palette.kToDark.shade200 : Colors.white,
142+
),
137143
onPressed: () => showDialog(
138144
context: context,
139145
builder: (context) => const AddTaskBottomSheet(),

lib/widgets/addTask.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ class _AddTaskBottomSheetState extends State<AddTaskBottomSheet> {
6969
setState(() {});
7070
},
7171
child: ActionChip(
72-
backgroundColor: Colors.grey.shade300,
72+
backgroundColor: AppSettings.isDarkMode
73+
? Colors.white
74+
: const Color.fromARGB(255, 220, 216, 216),
7375
label: Container(
7476
child: Text(
7577
(due != null) ? dueString : "null",

0 commit comments

Comments
 (0)