@@ -314,24 +314,24 @@ class WindowCaptionButton extends StatefulWidget {
314314 _lightButtonBgColorScheme = _ButtonBgColorScheme (
315315 normal: Colors .transparent,
316316 hovered: const Color (0xffC42B1C ),
317- pressed: const Color (0xffC42B1C ).withOpacity ( 0.9 ),
317+ pressed: const Color (0xffC42B1C ).withValues (alpha : 0.9 ),
318318 ),
319319 _lightButtonIconColorScheme = _ButtonIconColorScheme (
320- normal: Colors .black.withOpacity ( 0.8956 ),
320+ normal: Colors .black.withValues (alpha : 0.8956 ),
321321 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 ),
324324 ),
325325 _darkButtonBgColorScheme = _ButtonBgColorScheme (
326326 normal: Colors .transparent,
327327 hovered: const Color (0xffC42B1C ),
328- pressed: const Color (0xffC42B1C ).withOpacity ( 0.9 ),
328+ pressed: const Color (0xffC42B1C ).withValues (alpha : 0.9 ),
329329 ),
330330 _darkButtonIconColorScheme = _ButtonIconColorScheme (
331331 normal: Colors .white,
332332 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 ),
335335 );
336336
337337 final Brightness ? brightness;
@@ -341,25 +341,25 @@ class WindowCaptionButton extends StatefulWidget {
341341
342342 _ButtonBgColorScheme _lightButtonBgColorScheme = _ButtonBgColorScheme (
343343 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 ),
346346 );
347347 _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 ),
352352 );
353353 _ButtonBgColorScheme _darkButtonBgColorScheme = _ButtonBgColorScheme (
354354 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 ),
357357 );
358358 _ButtonIconColorScheme _darkButtonIconColorScheme = _ButtonIconColorScheme (
359359 normal: Colors .white,
360360 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 ),
363363 );
364364
365365 _ButtonBgColorScheme get buttonBgColorScheme => brightness != Brightness .dark
0 commit comments