fix: overgo issues with flutter_secure_store

This commit is contained in:
Sorunome 2020-10-07 18:39:21 +02:00
commit a44217b9d2
2 changed files with 34 additions and 2 deletions

View file

@ -175,7 +175,7 @@ class ThemeSwitcherWidgetState extends State<ThemeSwitcherWidget> {
BuildContext context;
Future loadSelection(MatrixState matrix) async {
String item = await matrix.store.getItem('theme') ?? 'light';
String item = await matrix.store.getItem('theme') ?? 'system';
selectedTheme = Themes.values.firstWhere(
(e) => e.toString() == 'Themes.' + item,
orElse: () => Themes.system);