feat: Add dark mode and theming options to app settings page

This commit is contained in:
Dr-Blank 2024-05-11 04:46:17 -04:00
parent 3ecdaadc3f
commit 1609fe9d65
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
4 changed files with 42 additions and 10 deletions

View file

@ -32,6 +32,7 @@ class AppSettingsPage extends HookConsumerWidget {
SettingsTile.switchTile(
initialValue: appSettings.isDarkMode,
title: const Text('Dark Mode'),
description: const Text('we all know dark mode is better'),
leading: appSettings.isDarkMode
? const Icon(Icons.dark_mode)
: const Icon(Icons.light_mode),
@ -42,6 +43,9 @@ class AppSettingsPage extends HookConsumerWidget {
SettingsTile.switchTile(
initialValue: appSettings.useMaterialThemeOnItemPage,
title: const Text('Use Material Theming on Item Page'),
description: const Text(
'get fancy with the colors on the item page at the cost of some performance',
),
leading: const Icon(Icons.dynamic_form_outlined),
onToggle: (value) {
ref.read(appSettingsProvider.notifier).updateState(