WindowCaptionButton.close constructor
WindowCaptionButton.close({
- Key? key,
- Brightness? brightness,
- Widget? icon,
- VoidCallback? onPressed,
Implementation
WindowCaptionButton.close({
super.key,
this.brightness,
this.icon,
this.onPressed,
}) : iconName = 'images/ic_chrome_close.png',
_lightButtonBgColorScheme = _ButtonBgColorScheme(
normal: Colors.transparent,
hovered: const Color(0xffC42B1C),
pressed: const Color(0xffC42B1C).withOpacity(0.9),
),
_lightButtonIconColorScheme = _ButtonIconColorScheme(
normal: Colors.black.withOpacity(0.8956),
hovered: Colors.white,
pressed: Colors.white.withOpacity(0.7),
disabled: Colors.black.withOpacity(0.3614),
),
_darkButtonBgColorScheme = _ButtonBgColorScheme(
normal: Colors.transparent,
hovered: const Color(0xffC42B1C),
pressed: const Color(0xffC42B1C).withOpacity(0.9),
),
_darkButtonIconColorScheme = _ButtonIconColorScheme(
normal: Colors.white,
hovered: Colors.white,
pressed: Colors.white.withOpacity(0.786),
disabled: Colors.black.withOpacity(0.3628),
);