Skip to content

Commit 71ad104

Browse files
committed
fix: theme color fixes for snackbar at Show Task of TC
1 parent a0c5d38 commit 71ad104

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ class TaskViewBuilder extends StatelessWidget {
120120
SlidableAction(
121121
onPressed: (context) {
122122
_markTaskAsCompleted(task.uuid!);
123-
ScaffoldMessenger.of(context).showSnackBar(
124-
SnackBar(
123+
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
125124
content: Text(
126125
SentenceManager(
127126
currentLanguage:
@@ -132,8 +131,9 @@ class TaskViewBuilder extends StatelessWidget {
132131
color: tColors.primaryTextColor,
133132
),
134133
),
135-
),
136-
);
134+
backgroundColor:
135+
tColors.secondaryBackgroundColor,
136+
duration: const Duration(seconds: 2)));
137137
},
138138
icon: Icons.done,
139139
label: SentenceManager(
@@ -150,8 +150,7 @@ class TaskViewBuilder extends StatelessWidget {
150150
SlidableAction(
151151
onPressed: (context) {
152152
_markTaskAsDeleted(task.uuid!);
153-
ScaffoldMessenger.of(context).showSnackBar(
154-
SnackBar(
153+
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
155154
content: Text(
156155
SentenceManager(
157156
currentLanguage:
@@ -162,8 +161,9 @@ class TaskViewBuilder extends StatelessWidget {
162161
color: tColors.primaryTextColor,
163162
),
164163
),
165-
),
166-
);
164+
backgroundColor:
165+
tColors.secondaryBackgroundColor,
166+
duration: const Duration(seconds: 2)));
167167
},
168168
icon: Icons.delete,
169169
label: SentenceManager(

0 commit comments

Comments
 (0)