Fix conflict

This commit is contained in:
Dennis Fokin 2022-09-09 10:24:39 +02:00
parent fe8349f203
commit cfe715051e
No known key found for this signature in database
GPG Key ID: 870B88256690D8BC

View File

@ -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
),
);
}