Skip to content

Commit 975f5f5

Browse files
update snackbar
1 parent a5362b6 commit 975f5f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/views/home/home.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ class _HomePageState extends State<HomePage> {
229229
} else {
230230
ScaffoldMessenger.of(context).showSnackBar(
231231
SnackBar(
232+
backgroundColor: AppSettings.isDarkMode
233+
? TaskWarriorColors.ksecondaryBackgroundColor
234+
: TaskWarriorColors.kLightSecondaryBackgroundColor,
232235
content: Text(
233236
'TaskServer is not configured',
234237
style: TextStyle(
@@ -237,9 +240,6 @@ class _HomePageState extends State<HomePage> {
237240
: TaskWarriorColors.black,
238241
),
239242
),
240-
backgroundColor: AppSettings.isDarkMode
241-
? TaskWarriorColors.black
242-
: TaskWarriorColors.white,
243243
action: SnackBarAction(
244244
label: 'Set Up',
245245
onPressed: () {

0 commit comments

Comments
 (0)