silence interval bug on previews versions fixed

This commit is contained in:
MohammadTaha Basiri 2022-03-31 00:09:13 +04:30
parent 01d0312310
commit eaec7340db
1 changed files with 11 additions and 6 deletions

View File

@ -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');