UiThemeSwitch constructor
const
UiThemeSwitch({
- Key? key,
- required ThemeManager manager,
- double iconSize = 24,
- Duration animationDuration = const Duration(milliseconds: 400),
- Color? activeColor,
- Color? inactiveColor,
- Color? thumbColor,
- IconData? lightIcon = Icons.wb_sunny_rounded,
- IconData? darkIcon = Icons.nightlight_round,
- IconData? systemIcon = Icons.brightness_auto,
- bool useSlideSwitch = false,
- 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
});