Add settings

This commit is contained in:
shilangyu 2021-04-16 20:32:25 +02:00
parent ef7ba71bcc
commit 600d52211e
1 changed files with 22 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class AppearanceConfigPage extends HookWidget {
if (selected != null) configStore.theme = selected;
},
),
SwitchListTile(
SwitchListTile.adaptive(
title: const Text('AMOLED dark mode'),
value: configStore.amoledDarkMode,
onChanged: (checked) {
@ -78,6 +78,27 @@ class AppearanceConfigPage extends HookWidget {
),
const SizedBox(height: 12),
const _SectionHeading('General'),
SwitchListTile.adaptive(
title: Text(L10n.of(context)!.show_nsfw),
value: configStore.showNsfw,
onChanged: (checked) {
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(