mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-19 16:49:33 +00:00
fix: errors
This commit is contained in:
parent
dc0540467f
commit
32e2be4b95
1 changed files with 47 additions and 37 deletions
|
|
@ -30,8 +30,10 @@ class ThemeSettingsPage extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
tiles: [
|
tiles: [
|
||||||
// choose system , light or dark theme
|
// choose system , light or dark theme
|
||||||
Padding(
|
SettingsTile(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
|
title: const Text('Theme Mode'),
|
||||||
|
description: Padding(
|
||||||
|
padding: const EdgeInsets.only(top: 8.0),
|
||||||
child: SegmentedButton<ThemeMode>(
|
child: SegmentedButton<ThemeMode>(
|
||||||
segments: [
|
segments: [
|
||||||
ButtonSegment<ThemeMode>(
|
ButtonSegment<ThemeMode>(
|
||||||
|
|
@ -72,6 +74,14 @@ class ThemeSettingsPage extends HookConsumerWidget {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
leading: Icon(
|
||||||
|
themeSettings.themeMode == ThemeMode.light
|
||||||
|
? Icons.light_mode
|
||||||
|
: themeSettings.themeMode == ThemeMode.dark
|
||||||
|
? Icons.dark_mode
|
||||||
|
: Icons.auto_awesome,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
// high contrast mode
|
// high contrast mode
|
||||||
SettingsTile.switchTile(
|
SettingsTile.switchTile(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue