Move show avatar/scores to appearance
This commit is contained in:
parent
c19496e2cf
commit
bb0e1baa0b
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue