InPatient Help PRO error handling issue resolved

merge-update-with-lab-changes
haroon amjad 1 year ago
parent 849164be2c
commit 21403a2bba

@ -159,8 +159,13 @@ class _HelpPROState extends State<HelpPRO> {
(projectViewModel.user.firstNameN! + " " + projectViewModel.user.lastNameN!), projectViewModel.user.mobileNumber!, assistText.text, context)
.then((res) {
GifLoaderDialogUtils.hideDialog(context);
AppToast.showSuccessToast(message: TranslationBase.of(context).successSendReport);
Navigator.of(context).pop();
if (res['MessageStatus'] == 1) {
AppToast.showSuccessToast(message: TranslationBase.of(context).successSendReport);
Navigator.of(context).pop();
} else {
AppToast.showErrorToast(message: res['ErrorEndUserMessage'], localContext: context);
Navigator.of(context).pop();
}
}).catchError((err) {
GifLoaderDialogUtils.hideDialog(context);
print(err);

Loading…
Cancel
Save