Update pubspec.yaml, lib/utils/famedlysdk_store.dart files
This commit is contained in:
parent
5734fe017c
commit
c0cbfe38da
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue