opt switch style

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-20 21:59:13 +08:00
parent c54d77f393
commit 787be7ac11
9 changed files with 8 additions and 95 deletions

View File

@@ -115,6 +115,14 @@ abstract class ThemeUtils {
cupertinoOverrideTheme: CupertinoThemeData(
selectionHandleColor: colorScheme.primary,
),
switchTheme: const SwitchThemeData(
thumbIcon: WidgetStateProperty<Icon?>.fromMap(
<WidgetStatesConstraint, Icon?>{
WidgetState.selected: Icon(Icons.done),
WidgetState.any: null,
},
),
),
);
if (isDark) {
if (Pref.isPureBlackTheme) {