25-3/18/1
This commit is contained in:
6
lib/controller/functions/secure_storage.dart
Normal file → Executable file
6
lib/controller/functions/secure_storage.dart
Normal file → Executable file
@@ -72,11 +72,7 @@ class AppInitializer {
|
||||
await CRUD().get(link: AppLink.getLocationAreaLinks, payload: {});
|
||||
if (res != 'failure') {
|
||||
links = List<Map<String, dynamic>>.from(jsonDecode(res)['message']);
|
||||
await box.remove(BoxName.locationName);
|
||||
await box.remove(BoxName.basicLink);
|
||||
await box.remove(links[4]['name']);
|
||||
await box.remove(links[1]['name']);
|
||||
await box.remove(links[2]['name']);
|
||||
|
||||
await box.write(BoxName.locationName, links);
|
||||
await box.write(BoxName.basicLink,
|
||||
EncryptionHelper.instance.decryptData(links[0]['server_link']));
|
||||
|
||||
Reference in New Issue
Block a user