|
|
@ -24,32 +24,32 @@ class SettingsChatView extends StatelessWidget {
|
|
|
|
withScrolling: true,
|
|
|
|
withScrolling: true,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
SettingsSwitchListTile(
|
|
|
|
SettingsSwitchListTile.adaptive(
|
|
|
|
title: L10n.of(context).renderRichContent,
|
|
|
|
title: L10n.of(context).renderRichContent,
|
|
|
|
onChanged: (b) => AppConfig.renderHtml = b,
|
|
|
|
onChanged: (b) => AppConfig.renderHtml = b,
|
|
|
|
storeKey: SettingKeys.renderHtml,
|
|
|
|
storeKey: SettingKeys.renderHtml,
|
|
|
|
defaultValue: AppConfig.renderHtml,
|
|
|
|
defaultValue: AppConfig.renderHtml,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SettingsSwitchListTile(
|
|
|
|
SettingsSwitchListTile.adaptive(
|
|
|
|
title: L10n.of(context).hideRedactedEvents,
|
|
|
|
title: L10n.of(context).hideRedactedEvents,
|
|
|
|
onChanged: (b) => AppConfig.hideRedactedEvents = b,
|
|
|
|
onChanged: (b) => AppConfig.hideRedactedEvents = b,
|
|
|
|
storeKey: SettingKeys.hideRedactedEvents,
|
|
|
|
storeKey: SettingKeys.hideRedactedEvents,
|
|
|
|
defaultValue: AppConfig.hideRedactedEvents,
|
|
|
|
defaultValue: AppConfig.hideRedactedEvents,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SettingsSwitchListTile(
|
|
|
|
SettingsSwitchListTile.adaptive(
|
|
|
|
title: L10n.of(context).hideUnknownEvents,
|
|
|
|
title: L10n.of(context).hideUnknownEvents,
|
|
|
|
onChanged: (b) => AppConfig.hideUnknownEvents = b,
|
|
|
|
onChanged: (b) => AppConfig.hideUnknownEvents = b,
|
|
|
|
storeKey: SettingKeys.hideUnknownEvents,
|
|
|
|
storeKey: SettingKeys.hideUnknownEvents,
|
|
|
|
defaultValue: AppConfig.hideUnknownEvents,
|
|
|
|
defaultValue: AppConfig.hideUnknownEvents,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SettingsSwitchListTile(
|
|
|
|
SettingsSwitchListTile.adaptive(
|
|
|
|
title: L10n.of(context).autoplayImages,
|
|
|
|
title: L10n.of(context).autoplayImages,
|
|
|
|
onChanged: (b) => AppConfig.autoplayImages = b,
|
|
|
|
onChanged: (b) => AppConfig.autoplayImages = b,
|
|
|
|
storeKey: SettingKeys.autoplayImages,
|
|
|
|
storeKey: SettingKeys.autoplayImages,
|
|
|
|
defaultValue: AppConfig.autoplayImages,
|
|
|
|
defaultValue: AppConfig.autoplayImages,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (PlatformInfos.isMobile)
|
|
|
|
if (PlatformInfos.isMobile)
|
|
|
|
SettingsSwitchListTile(
|
|
|
|
SettingsSwitchListTile.adaptive(
|
|
|
|
title: L10n.of(context).sendOnEnter,
|
|
|
|
title: L10n.of(context).sendOnEnter,
|
|
|
|
onChanged: (b) => AppConfig.sendOnEnter = b,
|
|
|
|
onChanged: (b) => AppConfig.sendOnEnter = b,
|
|
|
|
storeKey: SettingKeys.sendOnEnter,
|
|
|
|
storeKey: SettingKeys.sendOnEnter,
|
|
|
|