Fix checkbox theme

This commit is contained in:
Ming Ming 2024-06-01 20:42:45 +08:00
parent 5d52524e56
commit 1926bdd8a6

View file

@ -185,12 +185,12 @@ ThemeData _applyColorScheme(ColorScheme colorScheme) {
checkboxTheme: CheckboxThemeData(
fillColor: MaterialStateProperty.resolveWith((states) {
if (states.contains(MaterialState.disabled)) {
return colorScheme.onSurface;
return Colors.transparent;
} else {
if (states.contains(MaterialState.selected)) {
return colorScheme.secondary;
} else {
return colorScheme.onSurfaceVariant;
return Colors.transparent;
}
}
}),