UiThemeSwitch constructor

const UiThemeSwitch({
  1. Key? key,
  2. required ThemeManager manager,
  3. double iconSize = 24,
  4. Duration animationDuration = const Duration(milliseconds: 400),
  5. Color? activeColor,
  6. Color? inactiveColor,
  7. Color? thumbColor,
  8. IconData? lightIcon = Icons.wb_sunny_rounded,
  9. IconData? darkIcon = Icons.nightlight_round,
  10. IconData? systemIcon = Icons.brightness_auto,
  11. bool useSlideSwitch = false,
  12. bool enableSystemMode = true,
})

Implementation

const UiThemeSwitch({
  super.key,
  required this.manager,
  this.iconSize = 24,
  this.animationDuration = const Duration(milliseconds: 400),
  this.activeColor,
  this.inactiveColor,
  this.thumbColor,
  this.lightIcon = Icons.wb_sunny_rounded,
  this.darkIcon = Icons.nightlight_round,
  this.systemIcon = Icons.brightness_auto,
  this.useSlideSwitch = false,
  this.enableSystemMode = true, // default true
});