@@ -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