@@ -35,41 +35,35 @@ class _SettingsState extends ConsumerState<Settings> {
3535 Widget build (BuildContext context) {
3636 ref.watch (initLocaleProvider);
3737 return Scaffold (
38- appBar: AppBar (
39- title: Text (convertToUwU (settingsPage ())),
40- ),
38+ appBar: AppBar (title: Text (convertToUwU (settingsPage ()))),
4139 body: ListView (
4240 controller: _controller,
4341 children: [
4442 LanguagePicker (),
4543 ListTile (
4644 leading: const Icon (Icons .color_lens),
47- title: Text (
48- convertToUwU (settingsAppColor ()),
49- ),
45+ title: Text (convertToUwU (settingsAppColor ())),
5046 trailing: Row (
5147 mainAxisSize: MainAxisSize .min,
5248 children: [
5349 if (HiveProxy .getOrDefault (settings, appColor, defaultValue: appColorDefault) != appColorDefault) ...[
5450 IconButton (
55- onPressed: () {
56- setState (() {
57- HiveProxy .put (settings, appColor, appColorDefault);
58- appColorValue = Color (appColorDefault);
59- });
60- },
61- icon: Icon (Icons .clear)),
51+ onPressed: () {
52+ setState (() {
53+ HiveProxy .put (settings, appColor, appColorDefault);
54+ appColorValue = Color (appColorDefault);
55+ });
56+ },
57+ icon: Icon (Icons .clear),
58+ ),
6259 ],
63- ColorIndicator (
64- width: 44 ,
65- height: 44 ,
66- borderRadius: 22 ,
67- color: appColorValue,
68- )
60+ ColorIndicator (width: 44 , height: 44 , borderRadius: 22 , color: appColorValue),
6961 ],
7062 ),
7163 onTap: () async {
72- ColorPickerRoute (defaultColor: appColorValue.toARGB32 ()).push (context).then (
64+ ColorPickerRoute (defaultColor: appColorValue.toARGB32 ())
65+ .push (context)
66+ .then (
7367 (color) => setState (() {
7468 if (color != null ) {
7569 HiveProxy .put (settings, appColor, color);
@@ -86,11 +80,9 @@ class _SettingsState extends ConsumerState<Settings> {
8680 trailing: Switch (
8781 value: HiveProxy .getOrDefault (settings, showAccurateBattery, defaultValue: showAccurateBatteryDefault),
8882 onChanged: (bool value) async {
89- setState (
90- () {
91- HiveProxy .put (settings, showAccurateBattery, value);
92- },
93- );
83+ setState (() {
84+ HiveProxy .put (settings, showAccurateBattery, value);
85+ });
9486 },
9587 ),
9688 ),
@@ -101,11 +93,9 @@ class _SettingsState extends ConsumerState<Settings> {
10193 trailing: Switch (
10294 value: HiveProxy .getOrDefault (settings, largerActionCardSize, defaultValue: largerActionCardSizeDefault),
10395 onChanged: (bool value) async {
104- setState (
105- () {
106- HiveProxy .put (settings, largerActionCardSize, value);
107- },
108- );
96+ setState (() {
97+ HiveProxy .put (settings, largerActionCardSize, value);
98+ });
10999 },
110100 ),
111101 ),
@@ -116,11 +106,9 @@ class _SettingsState extends ConsumerState<Settings> {
116106 trailing: Switch (
117107 value: HiveProxy .getOrDefault (settings, hideTutorialCards, defaultValue: hideTutorialCardsDefault),
118108 onChanged: (bool value) async {
119- setState (
120- () {
121- HiveProxy .put (settings, hideTutorialCards, value);
122- },
123- );
109+ setState (() {
110+ HiveProxy .put (settings, hideTutorialCards, value);
111+ });
124112 },
125113 ),
126114 ),
@@ -131,17 +119,13 @@ class _SettingsState extends ConsumerState<Settings> {
131119 trailing: Switch (
132120 value: HiveProxy .getOrDefault (settings, tailBlogWifiOnly, defaultValue: tailBlogWifiOnlyDefault),
133121 onChanged: (bool value) async {
134- setState (
135- () {
136- HiveProxy .put (settings, tailBlogWifiOnly, value);
137- },
138- );
122+ setState (() {
123+ HiveProxy .put (settings, tailBlogWifiOnly, value);
124+ });
139125 },
140126 ),
141127 ),
142- const ListTile (
143- title: Divider (),
144- ),
128+ const ListTile (title: Divider ()),
145129 ListTile (
146130 title: Text (convertToUwU (settingsHapticsToggleTitle ())),
147131 leading: const Icon (Icons .vibration),
@@ -181,35 +165,43 @@ class _SettingsState extends ConsumerState<Settings> {
181165 subtitle: Text (convertToUwU (settingsKitsuneToggleSubTitle ())),
182166 trailing: Switch (
183167 value: HiveProxy .getOrDefault (settings, kitsuneModeToggle, defaultValue: kitsuneModeDefault),
168+ onChanged: (bool value) async {
169+ setState (() {
170+ HiveProxy .put (settings, kitsuneModeToggle, value);
171+ });
172+ },
173+ ),
174+ ),
175+ /* ListTile(
176+ title: Text(convertToUwU(scanDemoGear())),
177+ leading: const Icon(Icons.explore),
178+ subtitle: Text(convertToUwU(scanDemoGearTip())),
179+ trailing: Switch(
180+ value: HiveProxy.getOrDefault(settings, showDemoGear, defaultValue: showDemoGearDefault),
184181 onChanged: (bool value) async {
185182 setState(
186183 () {
187- HiveProxy .put (settings, kitsuneModeToggle , value);
184+ HiveProxy.put(settings, showDemoGear , value);
188185 },
189186 );
190187 },
191188 ),
192- ),
193-
189+ ), */
194190 ListTile (
195191 title: Text (convertToUwU (settingsUwUToggleTitle ())),
196192 leading: const Icon (Icons .explore),
197193 subtitle: Text (convertToUwU (settingsUwUToggleSubTitle ())),
198194 trailing: Switch (
199195 value: HiveProxy .getOrDefault (settings, uwuTextEnabled, defaultValue: uwuTextEnabledDefault),
200196 onChanged: (bool value) async {
201- setState (
202- () {
203- HiveProxy .put (settings, uwuTextEnabled, value);
204- ref.invalidate (initLocaleProvider);
205- },
206- );
197+ setState (() {
198+ HiveProxy .put (settings, uwuTextEnabled, value);
199+ ref.invalidate (initLocaleProvider);
200+ });
207201 },
208202 ),
209203 ),
210- const ListTile (
211- title: Divider (),
212- ),
204+ const ListTile (title: Divider ()),
213205 ListTile (
214206 title: Text (convertToUwU (settingsMarketingNotificationsToggleTitle ())),
215207 leading: const Icon (Icons .notifications),
0 commit comments