Merge branch 'develop' into feature/fd-466
This commit is contained in:
commit
835da52da0
|
@ -181,7 +181,7 @@ Future<void> onMessageReceived(Map<String, dynamic> payload, String? extra, Stri
|
|||
FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Name',
|
||||
ptText: 'Nome',
|
||||
): payload['PES_NOME'].toString(),
|
||||
): payload['PES_NOME'] != null ? payload['PES_NOME'].toString() : payload['USR_NOME'].toString(),
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Type',
|
||||
ptText: 'Tipo',
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:easy_debounce/easy_debounce.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
@ -61,9 +63,7 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
|||
child: Padding(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(24.0, 24.0, 0.0, 24.0),
|
||||
child: Text(
|
||||
FFLocalizations.of(context).getText(
|
||||
'uj8acuab' /* Preencha os Campos Abaixo: */,
|
||||
),
|
||||
FFLocalizations.of(context).getText('uj8acuab'),
|
||||
textAlign: TextAlign.start,
|
||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
fontFamily: FlutterFlowTheme.of(context).bodyMediumFamily,
|
||||
|
@ -585,7 +585,6 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
|||
nome: model.personNameTextController.text,
|
||||
proID: model.ownerUUID,
|
||||
);
|
||||
|
||||
if (PhpGroup.postProvVisitSchedulingCall
|
||||
.error((model.provVisitSchedule?.jsonBody ?? '')) ==
|
||||
false) {
|
||||
|
@ -596,7 +595,6 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
|||
enText: "Provisional Scheduling Successfully Completed"));
|
||||
safeSetState(() {
|
||||
model.dateTimeTextController?.clear();
|
||||
|
||||
model.personNameTextController?.clear();
|
||||
model.notesTextController?.clear();
|
||||
});
|
||||
|
@ -609,7 +607,6 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
|||
DialogUtil.errorDefault(context);
|
||||
}
|
||||
}
|
||||
|
||||
setState(() {});
|
||||
} catch (e, s) {
|
||||
DialogUtil.errorDefault(context);
|
||||
|
@ -633,10 +630,7 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
|||
GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).titleSmallFamily),
|
||||
),
|
||||
elevation: 3.0,
|
||||
borderSide: const BorderSide(
|
||||
color: Colors.transparent,
|
||||
width: 1.0,
|
||||
),
|
||||
borderSide: const BorderSide(color: Colors.transparent, width: 1.0),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
disabledColor: FlutterFlowTheme.of(context).customColor5,
|
||||
disabledTextColor: Colors.white,
|
||||
|
|
|
@ -50,10 +50,7 @@ class _DeliveryScheduleState extends State<DeliverySchedule> {
|
|||
},
|
||||
),
|
||||
title: Text(
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Delivery Schedule',
|
||||
ptText: 'Agendar Entregas',
|
||||
),
|
||||
FFLocalizations.of(context).getVariableText(enText: 'Delivery Schedule', ptText: 'Agendar Entregas'),
|
||||
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
||||
fontFamily: 'Nunito',
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hub/backend/api_requests/api_calls.dart';
|
||||
import 'package:hub/components/templates_components/change_passs_qr_code_pass_key_template_component/change_pass_widget.dart';
|
||||
|
@ -45,23 +47,32 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
);
|
||||
onConfirm() async {
|
||||
String content;
|
||||
try {
|
||||
String value = StorageUtil().notify ? 'N' : 'S';
|
||||
await PhpGroup.changeNotifica.call(notifica: value).then((value) async {
|
||||
if (value.jsonBody['error'] == false) {
|
||||
StorageUtil().notify = !StorageUtil().notify;
|
||||
notifyListeners();
|
||||
content = FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Notification changed successfully',
|
||||
ptText: 'Notificação alterada com sucesso',
|
||||
);
|
||||
context.pop();
|
||||
SnackBarUtil.showSnackBar(context, content);
|
||||
StorageUtil().notify = !StorageUtil().notify;
|
||||
notifyListeners();
|
||||
} catch (err) {
|
||||
} else {
|
||||
content = FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Error changing notification',
|
||||
ptText: 'Erro ao alterar notificação',
|
||||
);
|
||||
context.pop();
|
||||
SnackBarUtil.showSnackBar(context, content, isError: true);
|
||||
}
|
||||
}).catchError((e, s) {
|
||||
log('toggleNotify', error: e, stackTrace: s);
|
||||
content = FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Error changing notification',
|
||||
ptText: 'Erro ao alterar notificação',
|
||||
);
|
||||
SnackBarUtil.showSnackBar(context, content, isError: true);
|
||||
}).whenComplete(() => notifyListeners());
|
||||
context.pop();
|
||||
}
|
||||
|
||||
showAlertDialog(context, title, content, onConfirm);
|
||||
|
|
|
@ -84,6 +84,7 @@ class AuthenticationService {
|
|||
DialogUtil.errorDefault(context);
|
||||
} else {
|
||||
DialogUtil.error(context, response.jsonBody['error_msg'].toString());
|
||||
DialogUtil.error(context, response.jsonBody['error_msg'].toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -162,6 +163,7 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -183,6 +185,7 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -161,6 +161,7 @@ class StorageUtil {
|
|||
Future<void> 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');
|
||||
|
@ -172,6 +173,7 @@ 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);
|
||||
|
|
Loading…
Reference in New Issue