silence interval bug on previews versions fixed
This commit is contained in:
parent
01d0312310
commit
eaec7340db
|
|
@ -73,12 +73,17 @@ class GeneralSettingsState extends CoreProvier {
|
||||||
|
|
||||||
Future<void> getSettingsFromStorage() async {
|
Future<void> getSettingsFromStorage() async {
|
||||||
appState = AppState.busy;
|
appState = AppState.busy;
|
||||||
_notificationTimeRange[0] = int.parse(
|
try {
|
||||||
await StorageService.getValue(key: 'notificationTimeRangeStart'),
|
_notificationTimeRange[0] = int.parse(
|
||||||
);
|
await StorageService.getValue(key: 'notificationTimeRangeStart'),
|
||||||
_notificationTimeRange[1] = int.parse(
|
);
|
||||||
await StorageService.getValue(key: 'notificationTimeRangeEnd'),
|
_notificationTimeRange[1] = int.parse(
|
||||||
);
|
await StorageService.getValue(key: 'notificationTimeRangeEnd'),
|
||||||
|
);
|
||||||
|
} catch (e) {
|
||||||
|
notificationTimeRange = [0, 0];
|
||||||
|
}
|
||||||
|
|
||||||
_fontFamily = await StorageService.getValue(key: 'fontFamily');
|
_fontFamily = await StorageService.getValue(key: 'fontFamily');
|
||||||
_brightness = await StorageService.getValue(key: 'brightness');
|
_brightness = await StorageService.getValue(key: 'brightness');
|
||||||
final scale = await StorageService.getValue(key: 'fontSizeScale');
|
final scale = await StorageService.getValue(key: 'fontSizeScale');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue