Fixed desktop switch thumb color
This commit is contained in:
parent
9654b1b96c
commit
4cc9e7d4c3
|
@ -97,7 +97,11 @@ Widget toggle(BuildContext context, String text, bool value,
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.primary
|
.primary
|
||||||
.withAlpha(150))
|
.withAlpha(150))
|
||||||
: null)))
|
: !(prefs?.getBool("useDeviceTheme") ?? false) &&
|
||||||
|
value
|
||||||
|
? WidgetStatePropertyAll(
|
||||||
|
Theme.of(context).colorScheme.secondary)
|
||||||
|
: null)))
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue