mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +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(
|
checkboxTheme: CheckboxThemeData(
|
||||||
fillColor: MaterialStateProperty.resolveWith((states) {
|
fillColor: MaterialStateProperty.resolveWith((states) {
|
||||||
if (states.contains(MaterialState.disabled)) {
|
if (states.contains(MaterialState.disabled)) {
|
||||||
return colorScheme.onSurface;
|
return Colors.transparent;
|
||||||
} else {
|
} else {
|
||||||
if (states.contains(MaterialState.selected)) {
|
if (states.contains(MaterialState.selected)) {
|
||||||
return colorScheme.secondary;
|
return colorScheme.secondary;
|
||||||
} else {
|
} else {
|
||||||
return colorScheme.onSurfaceVariant;
|
return Colors.transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue