Fixed desktop switch thumb color

This commit is contained in:
JHubi1 2024-06-26 14:10:16 +02:00
parent 9654b1b96c
commit 4cc9e7d4c3
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 5 additions and 1 deletions

View File

@ -97,7 +97,11 @@ Widget toggle(BuildContext context, String text, bool value,
.colorScheme
.primary
.withAlpha(150))
: null)))
: !(prefs?.getBool("useDeviceTheme") ?? false) &&
value
? WidgetStatePropertyAll(
Theme.of(context).colorScheme.secondary)
: null)))
]),
]),
),