fix theme

This commit is contained in:
Phuoc Nguyen
2025-10-03 15:57:56 +07:00
parent deb7aeb850
commit 762395ce50
4 changed files with 115 additions and 63 deletions

View File

@@ -284,7 +284,7 @@ class _LoginPageState extends ConsumerState<LoginPage>
) {
return AnimatedContainer(
duration: AppSpacing.animationNormal,
height: isKeyboardVisible ? 120 : 180,
height: isKeyboardVisible ? 120 : 190,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [

View File

@@ -575,38 +575,32 @@ class ThemeSettingsPage extends ConsumerWidget {
body: Column(
children: [
const SizedBox(height: 16),
RadioListTile<ThemeMode>(
title: const Text('Light'),
subtitle: const Text('Use light theme'),
value: ThemeMode.light,
groupValue: themeMode,
onChanged: (value) {
if (value != null) {
ref.read(themeModeProvider.notifier).setThemeMode(value);
}
},
),
RadioListTile<ThemeMode>(
title: const Text('Dark'),
subtitle: const Text('Use dark theme'),
value: ThemeMode.dark,
groupValue: themeMode,
onChanged: (value) {
if (value != null) {
ref.read(themeModeProvider.notifier).setThemeMode(value);
}
},
),
RadioListTile<ThemeMode>(
title: const Text('System'),
subtitle: const Text('Follow system theme'),
value: ThemeMode.system,
RadioGroup<ThemeMode>(
groupValue: themeMode,
onChanged: (value) {
if (value != null) {
ref.read(themeModeProvider.notifier).setThemeMode(value);
}
},
child: Column(
children: [
RadioListTile<ThemeMode>(
title: const Text('Light'),
subtitle: const Text('Use light theme'),
value: ThemeMode.light,
),
RadioListTile<ThemeMode>(
title: const Text('Dark'),
subtitle: const Text('Use dark theme'),
value: ThemeMode.dark,
),
RadioListTile<ThemeMode>(
title: const Text('System'),
subtitle: const Text('Follow system theme'),
value: ThemeMode.system,
),
],
),
),
const SizedBox(height: 32),
Padding(