feat: Implement rich notification settings

This commit is contained in:
Christian Pauly 2020-11-25 20:39:54 +01:00
commit ef8638eede
7 changed files with 409 additions and 124 deletions

View file

@ -64,20 +64,18 @@ class ThemesSettingsState extends State<ThemesSettings> {
});
},
),
ListTile(
SwitchListTile(
title: Text(
L10n.of(context).useAmoledTheme,
),
trailing: Switch(
value: _amoledEnabled,
activeColor: Theme.of(context).primaryColor,
onChanged: (bool value) {
setState(() {
_amoledEnabled = value;
themeEngine.switchTheme(matrix, _selectedTheme, value);
});
},
),
value: _amoledEnabled,
activeColor: Theme.of(context).primaryColor,
onChanged: (bool value) {
setState(() {
_amoledEnabled = value;
themeEngine.switchTheme(matrix, _selectedTheme, value);
});
},
),
],
);