Switches¶
Switches toggle the state of a single item on or off.
Switches Default¶
Checkbox List Tile¶
Customization¶
To change the whole Switches Theme, please open the core/themes/app_theme.dart
. Here's how to change the Widget Radio Switch theme:
switchTheme: SwitchThemeData(
fillColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) {
if (states.contains(MaterialState.selected)) {
return AppColors.secondary;
} else if (states.contains(MaterialState.hovered)) {
return AppColors.splash;
}
return AppColors.fillPrimary;
}),
),
Authors: