mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-14 23:19:30 +00:00
feat: Add dark mode and theming options to app settings page
This commit is contained in:
parent
3ecdaadc3f
commit
1609fe9d65
4 changed files with 42 additions and 10 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue