mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-24 11:58:51 +00:00
Fix issue on first start
This commit is contained in:
parent
17f271dfb9
commit
6b8cc2569d
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -9,5 +9,5 @@ class ApplicationPreferences {
|
||||
|
||||
const ApplicationPreferences({
|
||||
@required this.enableDarkMode,
|
||||
});
|
||||
}) : assert(enableDarkMode != null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user