From 82e933a06fccaadd65ff4441ce9ebf652be86eb0 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Sun, 11 Aug 2024 17:06:50 +0300 Subject: [PATCH] updates & fixes for walkin appointment CR --- lib/pages/BookAppointment/DoctorProfile.dart | 2 +- .../waiting_appointment/waiting_appointment_verification.dart | 3 --- lib/pages/MyAppointments/AppointmentDetails.dart | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/pages/BookAppointment/DoctorProfile.dart b/lib/pages/BookAppointment/DoctorProfile.dart index 60fa6ea2..1681322c 100644 --- a/lib/pages/BookAppointment/DoctorProfile.dart +++ b/lib/pages/BookAppointment/DoctorProfile.dart @@ -622,7 +622,7 @@ class _DoctorProfileState extends State with TickerProviderStateM canPayForWalkInAppointment() { DoctorsListService service = new DoctorsListService(); GifLoaderDialogUtils.showMyDialog(context); - service.canPayForWalkInAppointment(widget.doctor.projectID!, widget.doctor.clinicID!, widget.doctor.doctorID!).then((res) { + service.canPayForWalkInAppointment(widget.doctor.clinicID!, widget.doctor.projectID!, widget.doctor.doctorID!).then((res) { GifLoaderDialogUtils.hideDialog(context); navigateToWaitingAppointment(context); }).catchError((err) { diff --git a/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart b/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart index cca8842d..6853c6d9 100644 --- a/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart +++ b/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart @@ -256,7 +256,6 @@ class _WaitingAppointmentVerificationState extends State with SingleTick canPayForWalkInAppointment() { DoctorsListService service = new DoctorsListService(); GifLoaderDialogUtils.showMyDialog(context); - service.canPayForWalkInAppointment(widget.appo.projectID!, widget.appo.clinicID!, widget.appo.doctorID!).then((res) { + service.canPayForWalkInAppointment(widget.appo.clinicID!, widget.appo.projectID!, widget.appo.doctorID!).then((res) { GifLoaderDialogUtils.hideDialog(context); navigateToWaitingAppointment(context); }).catchError((err) { GifLoaderDialogUtils.hideDialog(context); - AppToast.showErrorToast(message: err); + AppToast.showErrorToast(message: err, localContext: context); print(err); }); }