@@ -10,6 +10,7 @@ import 'settings_viewmodel.dart';
1010import 'widgets/settings_category_title/settings_category_title.dart' ;
1111import 'widgets/settings_text_preview/settings_text_preview.dart' ;
1212import 'widgets/settings_theme_item/settings_theme_item.dart' ;
13+ import 'widgets/toggle_item/toggle_item.dart' ;
1314
1415class SettingsView extends StackedView <SettingsViewModel > {
1516 const SettingsView ({super .key});
@@ -146,37 +147,12 @@ class SettingsView extends StackedView<SettingsViewModel> {
146147 height: 0 ,
147148 color: context.theme.appColors.divider,
148149 ),
149- // // Show special markings
150- // Padding(
151- // padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
152- // child: Row(
153- // mainAxisAlignment: MainAxisAlignment.spaceBetween,
154- // children: [
155- // Text(
156- // 'Show OET-LV special markings',
157- // style: TextStyle(
158- // color: context.theme.appColors.primary,
159- // fontSize: 16.0,
160- // fontWeight: FontWeight.w500,
161- // ),
162- // ),
163- // Switch(
164- // activeColor: context.theme.appColors.background,
165- // activeTrackColor: context.theme.appColors.switchBackground,
166- // inactiveThumbColor: context.theme.appColors.primary,
167- // inactiveTrackColor: context.theme.appColors.background,
168- // trackOutlineColor: MaterialStateProperty.resolveWith((states) {
169- // if (states.contains(MaterialState.selected)) {
170- // return context.theme.appColors.switchBackground;
171- // }
172- // return context.theme.appColors.primary;
173- // }),
174- // value: viewModel.showMarks,
175- // onChanged: viewModel.changeShowMarks,
176- // ),
177- // ],
178- // ),
179- // ),
150+ // Show special markings
151+ ToggleItem (
152+ label: 'Show OET-LV special markings' ,
153+ value: viewModel.showMarks,
154+ onChanged: viewModel.changeShowMarks,
155+ ),
180156 // Divider(
181157 // height: 0,
182158 // color: context.theme.appColors.divider,
@@ -288,7 +264,7 @@ class SettingsView extends StackedView<SettingsViewModel> {
288264 height: 0 ,
289265 color: context.theme.appColors.divider,
290266 ),
291-
267+ // Share feedback
292268 InkWell (
293269 onTap: viewModel.shareFeedback,
294270 child: Padding (
@@ -322,6 +298,11 @@ class SettingsView extends StackedView<SettingsViewModel> {
322298 ),
323299 ),
324300
301+ Divider (
302+ height: 0 ,
303+ color: context.theme.appColors.divider,
304+ ),
305+ // Visit website
325306 InkWell (
326307 onTap: viewModel.visitWebsite,
327308 child: Padding (
@@ -354,7 +335,10 @@ class SettingsView extends StackedView<SettingsViewModel> {
354335 ),
355336 ),
356337 ),
357-
338+ Divider (
339+ height: 0 ,
340+ color: context.theme.appColors.divider,
341+ ),
358342 // App version
359343 Padding (
360344 padding: const EdgeInsets .symmetric (horizontal: 8.0 , vertical: 16.0 ),
0 commit comments