@@ -314,24 +314,24 @@ class WindowCaptionButton extends StatefulWidget {
314
314
_lightButtonBgColorScheme = _ButtonBgColorScheme (
315
315
normal: Colors .transparent,
316
316
hovered: const Color (0xffC42B1C ),
317
- pressed: const Color (0xffC42B1C ).withOpacity ( 0.9 ),
317
+ pressed: const Color (0xffC42B1C ).withValues (alpha : 0.9 ),
318
318
),
319
319
_lightButtonIconColorScheme = _ButtonIconColorScheme (
320
- normal: Colors .black.withOpacity ( 0.8956 ),
320
+ normal: Colors .black.withValues (alpha : 0.8956 ),
321
321
hovered: Colors .white,
322
- pressed: Colors .white.withOpacity ( 0.7 ),
323
- disabled: Colors .black.withOpacity ( 0.3614 ),
322
+ pressed: Colors .white.withValues (alpha : 0.7 ),
323
+ disabled: Colors .black.withValues (alpha : 0.3614 ),
324
324
),
325
325
_darkButtonBgColorScheme = _ButtonBgColorScheme (
326
326
normal: Colors .transparent,
327
327
hovered: const Color (0xffC42B1C ),
328
- pressed: const Color (0xffC42B1C ).withOpacity ( 0.9 ),
328
+ pressed: const Color (0xffC42B1C ).withValues (alpha : 0.9 ),
329
329
),
330
330
_darkButtonIconColorScheme = _ButtonIconColorScheme (
331
331
normal: Colors .white,
332
332
hovered: Colors .white,
333
- pressed: Colors .white.withOpacity ( 0.786 ),
334
- disabled: Colors .black.withOpacity ( 0.3628 ),
333
+ pressed: Colors .white.withValues (alpha : 0.786 ),
334
+ disabled: Colors .black.withValues (alpha : 0.3628 ),
335
335
);
336
336
337
337
final Brightness ? brightness;
@@ -341,25 +341,25 @@ class WindowCaptionButton extends StatefulWidget {
341
341
342
342
_ButtonBgColorScheme _lightButtonBgColorScheme = _ButtonBgColorScheme (
343
343
normal: Colors .transparent,
344
- hovered: Colors .black.withOpacity ( 0.0373 ),
345
- pressed: Colors .black.withOpacity ( 0.0241 ),
344
+ hovered: Colors .black.withValues (alpha : 0.0373 ),
345
+ pressed: Colors .black.withValues (alpha : 0.0241 ),
346
346
);
347
347
_ButtonIconColorScheme _lightButtonIconColorScheme = _ButtonIconColorScheme (
348
- normal: Colors .black.withOpacity ( 0.8956 ),
349
- hovered: Colors .black.withOpacity ( 0.8956 ),
350
- pressed: Colors .black.withOpacity ( 0.6063 ),
351
- disabled: Colors .black.withOpacity ( 0.3614 ),
348
+ normal: Colors .black.withValues (alpha : 0.8956 ),
349
+ hovered: Colors .black.withValues (alpha : 0.8956 ),
350
+ pressed: Colors .black.withValues (alpha : 0.6063 ),
351
+ disabled: Colors .black.withValues (alpha : 0.3614 ),
352
352
);
353
353
_ButtonBgColorScheme _darkButtonBgColorScheme = _ButtonBgColorScheme (
354
354
normal: Colors .transparent,
355
- hovered: Colors .white.withOpacity ( 0.0605 ),
356
- pressed: Colors .white.withOpacity ( 0.0419 ),
355
+ hovered: Colors .white.withValues (alpha : 0.0605 ),
356
+ pressed: Colors .white.withValues (alpha : 0.0419 ),
357
357
);
358
358
_ButtonIconColorScheme _darkButtonIconColorScheme = _ButtonIconColorScheme (
359
359
normal: Colors .white,
360
360
hovered: Colors .white,
361
- pressed: Colors .white.withOpacity ( 0.786 ),
362
- disabled: Colors .black.withOpacity ( 0.3628 ),
361
+ pressed: Colors .white.withValues (alpha : 0.786 ),
362
+ disabled: Colors .black.withValues (alpha : 0.3628 ),
363
363
);
364
364
365
365
_ButtonBgColorScheme get buttonBgColorScheme => brightness != Brightness .dark
0 commit comments