chore: Resort settings and add more description text

This commit is contained in:
krille-chan 2024-01-20 14:45:44 +01:00
commit f7c89ddf9e
No known key found for this signature in database
4 changed files with 31 additions and 21 deletions

View file

@ -33,7 +33,8 @@ class SettingsChatView extends StatelessWidget {
),
const Divider(),
SettingsSwitchListTile.adaptive(
title: L10n.of(context)!.renderRichContent,
title: L10n.of(context)!.formattedMessages,
subtitle: L10n.of(context)!.formattedMessagesDescription,
onChanged: (b) => AppConfig.renderHtml = b,
storeKey: SettingKeys.renderHtml,
defaultValue: AppConfig.renderHtml,
@ -64,18 +65,6 @@ class SettingsChatView extends StatelessWidget {
defaultValue: AppConfig.autoplayImages,
),
const Divider(),
SettingsSwitchListTile.adaptive(
title: L10n.of(context)!.sendTypingNotifications,
onChanged: (b) => AppConfig.sendTypingNotifications = b,
storeKey: SettingKeys.sendTypingNotifications,
defaultValue: AppConfig.sendTypingNotifications,
),
SettingsSwitchListTile.adaptive(
title: L10n.of(context)!.sendReadReceipts,
onChanged: (b) => AppConfig.sendPublicReadReceipts = b,
storeKey: SettingKeys.sendPublicReadReceipts,
defaultValue: AppConfig.sendPublicReadReceipts,
),
SettingsSwitchListTile.adaptive(
title: L10n.of(context)!.sendOnEnter,
onChanged: (b) => AppConfig.sendOnEnter = b,