ThemeSwitcher constructor
const
ThemeSwitcher({
- Key? key,
- ThemeSwitcherStyle style = ThemeSwitcherStyle.icons,
- IconData? iconLight,
- IconData? iconDark,
- Color? darkColor,
- Color? lightColor,
- Color? darkIconColor,
- Color? lightIconColor,
- double? fontSize,
- FontWeight? fontWeight,
Creates a ThemeSwitcher widget.
The style
parameter is required.
Implementation
const ThemeSwitcher({
super.key,
this.style = ThemeSwitcherStyle.icons,
this.iconLight,
this.iconDark,
this.darkColor,
this.lightColor,
this.darkIconColor,
this.lightIconColor,
this.fontSize,
this.fontWeight,
});