1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00

Fix issue on first start

This commit is contained in:
Pierre HUBERT 2020-05-12 19:08:08 +02:00
parent 17f271dfb9
commit 6b8cc2569d
2 changed files with 2 additions and 3 deletions

View File

@ -74,8 +74,7 @@ class PreferencesHelper {
/// Get all settings as an [ApplicationPreferences] object
ApplicationPreferences get preferences => ApplicationPreferences(
enableDarkMode:
getBool(PreferencesKeyList.ENABLE_DARK_THEME, alternative: null),
enableDarkMode: getBool(PreferencesKeyList.ENABLE_DARK_THEME),
);
}

View File

@ -9,5 +9,5 @@ class ApplicationPreferences {
const ApplicationPreferences({
@required this.enableDarkMode,
});
}) : assert(enableDarkMode != null);
}