ThemeSwitcher constructor

const ThemeSwitcher({
  1. Key? key,
  2. ThemeSwitcherStyle style = ThemeSwitcherStyle.icons,
  3. IconData? iconLight,
  4. IconData? iconDark,
  5. Color? darkColor,
  6. Color? lightColor,
  7. Color? darkIconColor,
  8. Color? lightIconColor,
  9. double? fontSize,
  10. 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,
});