Add HTML render
This commit is contained in:
parent
19c7113493
commit
db60869fba
12 changed files with 167 additions and 21 deletions
|
|
@ -210,6 +210,28 @@ class _SettingsState extends State<Settings> {
|
|||
);
|
||||
}),
|
||||
Divider(thickness: 1),
|
||||
ListTile(
|
||||
title: Text(
|
||||
L10n.of(context).chat,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
title: Text(L10n.of(context).renderRichContent),
|
||||
trailing: Switch(
|
||||
value: Matrix.of(context).renderHtml,
|
||||
activeColor: Theme.of(context).primaryColor,
|
||||
onChanged: (bool newValue) async {
|
||||
Matrix.of(context).renderHtml = newValue;
|
||||
await client.storeAPI.setItem("chat.fluffy.renderHtml", newValue ? "1" : "0");
|
||||
setState(() => null);
|
||||
},
|
||||
),
|
||||
),
|
||||
Divider(thickness: 1),
|
||||
ListTile(
|
||||
title: Text(
|
||||
L10n.of(context).account,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue