Merge branch 'fix/storage' of github.com:FRE-Informatica/flutter-freaccesss-hub into fix/storage

This commit is contained in:
J. A. Messias 2024-11-05 10:42:59 -03:00
commit 7ebd2f24ef
1 changed files with 4 additions and 4 deletions

View File

@ -274,10 +274,10 @@ class LocalizationService {
} }
static Future<void> _updateStorageUtil(Map<String, dynamic> jsonBody) async { static Future<void> _updateStorageUtil(Map<String, dynamic> jsonBody) async {
await StorageHelper.instance.set(SQLiteStorageKey.whatsapp.value, jsonBody['whatsapp'] == true && jsonBody['whatsapp'] != null ? 'true' : 'false', Storage.SQLiteStorage); await StorageHelper.instance.set(SQLiteStorageKey.whatsapp.value, jsonBody['whatsapp'] != null && jsonBody['whatsapp'] ? 'true' : 'false', Storage.SQLiteStorage);
await StorageHelper.instance.set(SQLiteStorageKey.provisional.value, jsonBody['provisional'] == true && jsonBody['provisional'] != null ? 'true' : 'false', Storage.SQLiteStorage); await StorageHelper.instance.set(SQLiteStorageKey.provisional.value, jsonBody['provisional'] != null && jsonBody['provisional'] ? 'true' : 'false', Storage.SQLiteStorage);
await StorageHelper.instance.set(SQLiteStorageKey.pets.value, jsonBody['pet'] == true && jsonBody['pet'] != null ? 'true' : 'false', Storage.SQLiteStorage); await StorageHelper.instance.set(SQLiteStorageKey.pets.value, jsonBody['pet'] != null && jsonBody['pet'] ? 'true' : 'false', Storage.SQLiteStorage);
await StorageHelper.instance.set(SQLiteStorageKey.petAmount.value, jsonBody['petAmountRegister'].toString().isEmpty ? '0' : jsonBody['petAmountRegister'].toString(), Storage.SQLiteStorage); await StorageHelper.instance.set(SQLiteStorageKey.petAmount.value, jsonBody['petAmountRegister'] != null && jsonBody['petAmountRegister'].toString().isEmpty ? '0' : jsonBody['petAmountRegister'].toString(), Storage.SQLiteStorage);
await StorageHelper.instance.set(SQLiteStorageKey.userName.value, jsonBody['visitado']['VDO_NOME'], Storage.SQLiteStorage); await StorageHelper.instance.set(SQLiteStorageKey.userName.value, jsonBody['visitado']['VDO_NOME'], Storage.SQLiteStorage);
} }