mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 00:57:26 +03:00
Fix conflict
This commit is contained in:
parent
fe8349f203
commit
cfe715051e
@ -19,43 +19,7 @@ class SettingsPage extends ConsumerWidget {
|
||||
|
||||
final theme = Theme.of(context);
|
||||
return ResponsiveDialog(
|
||||
<<<<<<< HEAD
|
||||
title: Text(AppLocalizations.of(context)!.general_settings),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
ListTitle(AppLocalizations.of(context)!.general_appearance),
|
||||
RadioListTile<ThemeMode>(
|
||||
title: Text(AppLocalizations.of(context)!.general_system_default),
|
||||
value: ThemeMode.system,
|
||||
groupValue: themeMode,
|
||||
onChanged: (mode) {
|
||||
ref.read(themeModeProvider.notifier).setThemeMode(mode!);
|
||||
_log.debug('Set theme mode to $mode');
|
||||
},
|
||||
),
|
||||
RadioListTile<ThemeMode>(
|
||||
title: Text(AppLocalizations.of(context)!.general_light_mode),
|
||||
value: ThemeMode.light,
|
||||
groupValue: themeMode,
|
||||
onChanged: (mode) {
|
||||
ref.read(themeModeProvider.notifier).setThemeMode(mode!);
|
||||
_log.debug('Set theme mode to $mode');
|
||||
},
|
||||
),
|
||||
RadioListTile<ThemeMode>(
|
||||
title: Text(AppLocalizations.of(context)!.general_dark_mode),
|
||||
value: ThemeMode.dark,
|
||||
groupValue: themeMode,
|
||||
onChanged: (mode) {
|
||||
ref.read(themeModeProvider.notifier).setThemeMode(mode!);
|
||||
_log.debug('Set theme mode to $mode');
|
||||
},
|
||||
),
|
||||
],
|
||||
=======
|
||||
title: const Text('Settings'),
|
||||
child: Theme(
|
||||
// Make the headers use the primary color to pop a bit.
|
||||
// Once M3 is implemented this will probably not be needed.
|
||||
@ -68,9 +32,9 @@ class SettingsPage extends ConsumerWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const ListTitle('Appearance'),
|
||||
ListTitle(AppLocalizations.of(context)!.general_appearance),
|
||||
RadioListTile<ThemeMode>(
|
||||
title: const Text('System default'),
|
||||
title: Text(AppLocalizations.of(context)!.general_system_default),
|
||||
value: ThemeMode.system,
|
||||
groupValue: themeMode,
|
||||
onChanged: (mode) {
|
||||
@ -79,7 +43,7 @@ class SettingsPage extends ConsumerWidget {
|
||||
},
|
||||
),
|
||||
RadioListTile<ThemeMode>(
|
||||
title: const Text('Light mode'),
|
||||
title: Text(AppLocalizations.of(context)!.general_light_mode),
|
||||
value: ThemeMode.light,
|
||||
groupValue: themeMode,
|
||||
onChanged: (mode) {
|
||||
@ -88,7 +52,7 @@ class SettingsPage extends ConsumerWidget {
|
||||
},
|
||||
),
|
||||
RadioListTile<ThemeMode>(
|
||||
title: const Text('Dark mode'),
|
||||
title: Text(AppLocalizations.of(context)!.general_dark_mode),
|
||||
value: ThemeMode.dark,
|
||||
groupValue: themeMode,
|
||||
onChanged: (mode) {
|
||||
@ -98,7 +62,6 @@ class SettingsPage extends ConsumerWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
>>>>>>> main
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user