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

This commit is contained in:
Christian Pauly 2020-03-06 12:05:52 +00:00
parent f373e7a65e
commit 04a6170e81
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);
}

View File

@ -27,7 +27,7 @@ dependencies:
famedlysdk:
git:
url: https://gitlab.com/famedly/famedlysdk.git
ref: 5eda493ba2ca529fb351ca15028868a25ed6196e
ref: c57c7d6719c71e0c9f3ce4f6686b9512711435f2
localstorage: ^3.0.1+4
bubble: ^1.1.9+1