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 { Future<dynamic> getItem(String key) async {
if (kIsWeb) { if (kIsWeb) {
await storage.ready; await storage.ready;
try {
return await storage.getItem(key); return await storage.getItem(key);
} catch (_) {
return null;
}
} }
return await secureStorage.read(key: key); return await secureStorage.read(key: key);
} }

View file

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