From c77ffb1730e310d757641dcf737a89fe1e15172b Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 4 Feb 2025 11:49:47 +0300 Subject: [PATCH] updates --- lib/pages/BookAppointment/BookConfirm.dart | 5 +++-- lib/pages/MyAppointments/AppointmentDetails.dart | 2 +- lib/pages/ToDoList/ToDo.dart | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/pages/BookAppointment/BookConfirm.dart b/lib/pages/BookAppointment/BookConfirm.dart index 65dfa1b1..cd2d8c7a 100644 --- a/lib/pages/BookAppointment/BookConfirm.dart +++ b/lib/pages/BookAppointment/BookConfirm.dart @@ -459,8 +459,9 @@ class _BookConfirmState extends State { payfortProjectDetailsRespModel: payfortProjectDetailsRespModel, currency: projectViewModel.user.outSA == 1 ? "AED" : "SAR", onFailed: (failureResult) async { - log("failureResult: ${failureResult.toString()}"); - AppToast.showErrorToast(message: failureResult.toString()); + GifLoaderDialogUtils.hideDialog(context); + log("failureResult: ${failureResult.message.toString()}"); + AppToast.showErrorToast(message: failureResult.message.toString()); }, onSuccess: (successResult) async { log("Payfort: ${successResult.responseMessage}"); diff --git a/lib/pages/MyAppointments/AppointmentDetails.dart b/lib/pages/MyAppointments/AppointmentDetails.dart index db6eb173..2744c56f 100644 --- a/lib/pages/MyAppointments/AppointmentDetails.dart +++ b/lib/pages/MyAppointments/AppointmentDetails.dart @@ -105,7 +105,7 @@ class _AppointmentDetailsState extends State with SingleTick widget.appo.doctorImageURL!, widget.appo.doctorSpeciality!, "", - widget.appo.projectName!, + widget.appo.projectName ?? "", DateUtil.convertStringToDate(widget.appo.appointmentDate!), widget.appo.isLiveCareAppointment! ? DateUtil.convertStringToDate(widget.appo.appointmentDate!).toString().split(" ")[1].substring(0, 5) : widget.appo.startTime!.substring(0, 5), "", diff --git a/lib/pages/ToDoList/ToDo.dart b/lib/pages/ToDoList/ToDo.dart index bd860008..c5d99320 100644 --- a/lib/pages/ToDoList/ToDo.dart +++ b/lib/pages/ToDoList/ToDo.dart @@ -1531,8 +1531,8 @@ class _ToDoState extends State with SingleTickerProviderStateMixin { currency: projectViewModel.user.outSA == 1 ? "AED" : "SAR", onFailed: (failureResult) async { GifLoaderDialogUtils.hideDialog(context); - log("failureResult: ${failureResult.toString()}"); - AppToast.showErrorToast(message: failureResult.toString()); + log("failureResult: ${failureResult.message.toString()}"); + AppToast.showErrorToast(message: failureResult.message.toString()); }, onSuccess: (successResult) async { log("Payfort: ${successResult.responseMessage}");