@@ -202,6 +202,32 @@ class _MediaInfoDialogState extends State<MediaInfoDialog> {
202
202
context: context,
203
203
firstDate: DateTime (1970 , 1 , 1 ),
204
204
lastDate: DateTime .now (),
205
+ builder: (BuildContext context, Widget ? child) {
206
+ return Theme (
207
+ data: Theme .of (context).copyWith (
208
+ colorScheme: const ColorScheme .dark (
209
+ // Use ColorScheme.dark to reflect a dark theme
210
+ primary: Color .fromARGB (
211
+ 255 , 44 , 44 , 44 ), // Header background color
212
+ onPrimary: Colors .white, // Header text color
213
+ surface: Color .fromARGB (
214
+ 255 , 55 , 44 , 55 ), // Dialog background color
215
+ onSurface: Colors .white, // Body text color
216
+ ),
217
+ textButtonTheme: TextButtonThemeData (
218
+ style: TextButton .styleFrom (
219
+ backgroundColor: const Color .fromARGB (255 , 37 ,
220
+ 37 , 37 ), // Button background color
221
+ foregroundColor:
222
+ Colors .white, // Button text color
223
+ ),
224
+ ),
225
+ dialogBackgroundColor: const Color .fromARGB (255 ,
226
+ 44 , 44 , 44 ), // Entire dialog background color
227
+ ),
228
+ child: child! ,
229
+ );
230
+ },
205
231
);
206
232
if (chosenDateTime != null ) {
207
233
setState (() {
@@ -239,6 +265,32 @@ class _MediaInfoDialogState extends State<MediaInfoDialog> {
239
265
context: context,
240
266
firstDate: DateTime (1970 , 1 , 1 ),
241
267
lastDate: DateTime .now (),
268
+ builder: (BuildContext context, Widget ? child) {
269
+ return Theme (
270
+ data: Theme .of (context).copyWith (
271
+ colorScheme: const ColorScheme .light (
272
+ // Use ColorScheme.dark to reflect a dark theme
273
+ primary: Color .fromARGB (
274
+ 255 , 44 , 44 , 44 ), // Header background color
275
+ onPrimary: Colors .white, // Header text color
276
+ surface: Color .fromARGB (
277
+ 255 , 55 , 44 , 55 ), // Dialog background color
278
+ onSurface: Colors .white, // Body text color
279
+ ),
280
+ textButtonTheme: TextButtonThemeData (
281
+ style: TextButton .styleFrom (
282
+ backgroundColor: const Color .fromARGB (255 , 37 ,
283
+ 37 , 37 ), // Button background color
284
+ foregroundColor:
285
+ Colors .white, // Button text color
286
+ ),
287
+ ),
288
+ dialogBackgroundColor: const Color .fromARGB (255 ,
289
+ 44 , 44 , 44 ), // Entire dialog background color
290
+ ),
291
+ child: child! ,
292
+ );
293
+ },
242
294
);
243
295
if (chosenDateTime != null ) {
244
296
setState (() {
0 commit comments