mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Fix checkbox theme
This commit is contained in:
parent
5d52524e56
commit
1926bdd8a6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue