diff --git a/lib/pages/visits_on_the_property/model.dart b/lib/pages/visits_on_the_property/model.dart index 8c5ba18a..c086c92c 100644 --- a/lib/pages/visits_on_the_property/model.dart +++ b/lib/pages/visits_on_the_property/model.dart @@ -35,11 +35,11 @@ class VisitsModel extends FlutterFlowModel { return DetailsComponentWidget( buttons: [], labelsHashMap: Map.from({ - if (item['VTA_NOME'] != null && item['VTA_NOME'] != '') + if (item['MOT_DESCRICAO'] != null && item['MOT_DESCRICAO'] != '') '${FFLocalizations.of(context).getVariableText( - ptText: "Nome", - enText: "Name", - )}:': item['VTA_NOME'].toString().toUpperCase(), + ptText: "Motivo", + enText: "Reason", + )}:': item['MOT_DESCRICAO'].toString().toUpperCase(), if (item['VTA_DTINICIO'] != null && item['VTA_DTINICIO'] != '') '${FFLocalizations.of(context).getVariableText( ptText: "Data de InĂ­cio", @@ -67,9 +67,9 @@ class VisitsModel extends FlutterFlowModel { imagePath: 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${StorageUtil().devUUID}&cliID=${StorageUtil().cliUUID}&atividade=getFoto&Documento=${item['VDO_DOCUMENTO']}&tipo=E', statusHashMap: [ - if (item['MOT_DESCRICAO'] != null) + if (item['VTA_NOME'] != null) Map.from( - {item['MOT_DESCRICAO'].toString().toUpperCase(): FlutterFlowTheme.of(context).primary}), + {item['VTA_NOME'].toString().toUpperCase(): FlutterFlowTheme.of(context).warning}), ], ); } diff --git a/lib/shared/services/authentication/authentication_service.dart b/lib/shared/services/authentication/authentication_service.dart index 391a625f..8b1d14f0 100644 --- a/lib/shared/services/authentication/authentication_service.dart +++ b/lib/shared/services/authentication/authentication_service.dart @@ -163,7 +163,6 @@ class AuthenticationService { } catch (e, s) { DialogUtil.errorDefault(context); LogUtil.requestAPIFailed('forgotPassword.php', email, "Forgot Password", e, s); - LogUtil.requestAPIFailed('forgotPassword.php', email, "Forgot Password", e, s); } } @@ -185,7 +184,6 @@ class AuthenticationService { } catch (e, s) { DialogUtil.errorDefault(context); LogUtil.requestAPIFailed('changePassword.php', email, "Change Password", e, s); - LogUtil.requestAPIFailed('changePassword.php', email, "Change Password", e, s); } } diff --git a/lib/shared/utils/storage_util.dart b/lib/shared/utils/storage_util.dart index ec0dcb3d..3aef0f98 100644 --- a/lib/shared/utils/storage_util.dart +++ b/lib/shared/utils/storage_util.dart @@ -123,7 +123,7 @@ class StorageUtil { if (!_initialized) return true; if (_initialized) await SharedPreferencesStorageHelper().initialize(); if (_initialized) _secureStorage = SecureStorageHelper(); - if (_initialized) _sqliteStorage = SQLiteStorageHelper(); + if (_initialized) _sharedPreferences = SharedPreferencesStorageHelper(); if (_initialized) _sqliteStorage = SQLiteStorageHelper(); await initSecureStorage(); await initSharedPreferences(); @@ -161,7 +161,6 @@ class StorageUtil { Future initSecureStorage() async { log('SecureStorageHelper: Starting initialization'); try { - if (_initialized) _secureStorage = SecureStorageHelper(); if (_initialized) _secureStorage = SecureStorageHelper(); _email = await _secureStorage.getString('fre_email'); _passwd = await _secureStorage.getString('fre_passwd'); @@ -173,7 +172,6 @@ class StorageUtil { _fingerprintPass = await _secureStorage.getString('fre_fingerprintPass'); _haveLocal = await _secureStorage.getBool('fre_have_local') ?? false; _deviceDescription = await _secureStorage.getString('fre_deviceDescription'); - _deviceDescription = await _secureStorage.getString('fre_deviceDescription'); } catch (e, s) { log('SecureStorageHelper: Error during initialization: $e'); LogUtil.requestAPIFailed('$UniqueKey', '$UniqueKey', 'SecureStorageHelper', e, s);