Move show avatar/scores to appearance

This commit is contained in:
shilangyu 2021-04-18 16:38:02 +02:00
parent c19496e2cf
commit bb0e1baa0b
1 changed files with 17 additions and 14 deletions

View File

@ -67,6 +67,7 @@ class AppearanceConfigPage extends HookWidget {
appBar: AppBar(title: const Text('Appearance')),
body: ListView(
children: [
const _SectionHeading('Theme'),
for (final theme in ThemeMode.values)
RadioListTile<ThemeMode>(
value: theme,
@ -83,6 +84,22 @@ class AppearanceConfigPage extends HookWidget {
configStore.amoledDarkMode = checked;
},
),
const SizedBox(height: 12),
const _SectionHeading('Other'),
SwitchListTile.adaptive(
title: Text(L10n.of(context)!.show_avatars),
value: configStore.showAvatars,
onChanged: (checked) {
configStore.showAvatars = checked;
},
),
SwitchListTile.adaptive(
title: const Text('Show scores'),
value: configStore.showScores,
onChanged: (checked) {
configStore.showScores = checked;
},
),
],
),
);
@ -108,20 +125,6 @@ class GeneralConfigPage extends HookWidget {
configStore.showNsfw = checked;
},
),
SwitchListTile.adaptive(
title: Text(L10n.of(context)!.show_avatars),
value: configStore.showAvatars,
onChanged: (checked) {
configStore.showAvatars = checked;
},
),
SwitchListTile.adaptive(
title: const Text('Show scores'),
value: configStore.showScores,
onChanged: (checked) {
configStore.showScores = checked;
},
),
ListTile(
title: Text(L10n.of(context)!.language),
trailing: SizedBox(