diff --git a/lib/settings/view/theme_settings_page.dart b/lib/settings/view/theme_settings_page.dart index 840ff35..315e4fa 100644 --- a/lib/settings/view/theme_settings_page.dart +++ b/lib/settings/view/theme_settings_page.dart @@ -207,52 +207,3 @@ extension StringExtension on String { return Color(int.parse('0xff$substring(1)')); } } -// ModeSelectionDialog is no longer needed as SegmentedButton handles selection directly. -// class ModeSelectionDialog extends HookConsumerWidget { -// final ThemeMode themeMode; - -// const ModeSelectionDialog({ -// super.key, -// required this.themeMode, -// }); - -// @override -// Widget build(BuildContext context, WidgetRef ref) { -// final selectedTheme = useState(themeMode); -// // a wrap of chips to show the available modes with icons -// return AlertDialog( -// title: const Text('Select Theme Mode'), -// content: Wrap( -// spacing: 8.0, -// runSpacing: 8.0, -// children: ThemeMode.values -// .map( -// (mode) => ChoiceChip( -// avatar: switch (mode) { -// ThemeMode.system => const Icon(Icons.auto_awesome), -// ThemeMode.light => const Icon(Icons.light_mode), -// ThemeMode.dark => const Icon(Icons.dark_mode), -// }, -// showCheckmark: false, -// label: Text(mode.pascalCase), -// selected: mode == selectedTheme.value, -// onSelected: (selected) { -// if (selected) { -// selectedTheme.value = mode; -// } -// }, -// ), -// ) -// .toList(), -// ), -// actions: [ -// CancelButton(), -// OkButton( -// onPressed: () { -// Navigator.pop(context, selectedTheme.value); -// }, -// ), -// ], -// ); -// } -// }