Skip to content

Commit 4b7571b

Browse files
committed
Update UI for fetching statistics dialog
1 parent dadd00a commit 4b7571b

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

lib/taskserver/ntaskserver.dart

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,27 @@ class _ManageTaskServerState extends State<ManageTaskServer> {
7979
barrierDismissible: false,
8080
builder: (context) {
8181
return Utils.showAlertDialog(
82-
title: const Text('Fetching statistics...'),
83-
content: const Column(
82+
title: Text(
83+
'Fetching statistics...',
84+
style: TextStyle(
85+
color: AppSettings.isDarkMode
86+
? TaskWarriorColors.white
87+
: TaskWarriorColors.black,
88+
),
89+
),
90+
content: Column(
8491
mainAxisSize: MainAxisSize.min,
8592
children: [
86-
CircularProgressIndicator(),
87-
SizedBox(height: 16),
88-
Text('Please wait...'),
93+
const CircularProgressIndicator(),
94+
const SizedBox(height: 16),
95+
Text(
96+
'Please wait...',
97+
style: TextStyle(
98+
color: AppSettings.isDarkMode
99+
? TaskWarriorColors.white
100+
: TaskWarriorColors.black,
101+
),
102+
),
89103
],
90104
),
91105
);
@@ -140,15 +154,22 @@ class _ManageTaskServerState extends State<ManageTaskServer> {
140154
),
141155
actions: [
142156
ElevatedButton(
157+
style: ButtonStyle(
158+
backgroundColor: WidgetStateProperty.all<Color>(
159+
AppSettings.isDarkMode
160+
? TaskWarriorColors.kLightSecondaryBackgroundColor
161+
: TaskWarriorColors.ksecondaryBackgroundColor,
162+
),
163+
),
143164
onPressed: () {
144165
Navigator.of(context).pop();
145166
},
146167
child: Text(
147168
'Ok',
148169
style: TextStyle(
149170
color: AppSettings.isDarkMode
150-
? TaskWarriorColors.white
151-
: TaskWarriorColors.black,
171+
? TaskWarriorColors.black
172+
: TaskWarriorColors.white,
152173
),
153174
),
154175
),
@@ -505,10 +526,10 @@ class _ManageTaskServerState extends State<ManageTaskServer> {
505526
style: ButtonStyle(
506527
backgroundColor: AppSettings
507528
.isDarkMode
508-
? MaterialStateProperty.all<
529+
? WidgetStateProperty.all<
509530
Color>(
510531
TaskWarriorColors.black)
511-
: MaterialStateProperty.all<
532+
: WidgetStateProperty.all<
512533
Color>(
513534
TaskWarriorColors
514535
.white)),

0 commit comments

Comments
 (0)