File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ class AdaptiveSwitch extends Switch {
2626 return YaruSwitch (
2727 value: value,
2828 onChanged: onChanged,
29- thumbColor: thumbColor? .resolve (const {}),
29+ thumbColor: thumbColor? .resolve ({
30+ if (value) WidgetState .selected,
31+ if (onChanged == null ) WidgetState .disabled,
32+ }),
3033 focusNode: focusNode,
3134 autofocus: autofocus,
3235 mouseCursor: mouseCursor,
Original file line number Diff line number Diff line change 1+ import 'package:flutter/cupertino.dart' ;
12import 'package:flutter/material.dart' ;
23import 'package:saber/components/theming/font_fallbacks.dart' ;
34import 'package:saber/data/prefs.dart' ;
@@ -41,6 +42,9 @@ abstract class SaberTheme {
4142 year2023: false ,
4243 stopIndicatorColor: Colors .transparent,
4344 ),
45+ cupertinoOverrideTheme: const NoDefaultCupertinoThemeData (
46+ applyThemeToAll: true ,
47+ ),
4448 );
4549 }
4650
You can’t perform that action at this time.
0 commit comments