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,
A widget that allows switching between light and dark themes.
The ThemeSwitcher widget provides a UI element to toggle between light and dark themes. It supports different styles such as icons and switches.
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,
});