mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt switch style
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user