Update pubspec.yaml, lib/utils/famedlysdk_store.dart files

This commit is contained in:
Christian Pauly 2020-03-06 12:05:52 +00:00
commit c0cbfe38da
2 changed files with 6 additions and 2 deletions

View file

@ -23,7 +23,11 @@ class Store extends StoreAPI {
Future<dynamic> getItem(String key) async {
if (kIsWeb) {
await storage.ready;
return await storage.getItem(key);
try {
return await storage.getItem(key);
} catch (_) {
return null;
}
}
return await secureStorage.read(key: key);
}