From 98a5b7d049e26f731213ae6dbc26adda2f8f55ac Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 8 Jan 2024 12:25:32 +0300 Subject: [PATCH] my appointments fixes --- lib/pages/MyAppointments/MyAppointments.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/pages/MyAppointments/MyAppointments.dart b/lib/pages/MyAppointments/MyAppointments.dart index 1163da12..7939e0c0 100644 --- a/lib/pages/MyAppointments/MyAppointments.dart +++ b/lib/pages/MyAppointments/MyAppointments.dart @@ -270,10 +270,6 @@ class _MyAppointmentsState extends State with SingleTickerProvid } else { _patientBookedAppointmentListHospital.add(PatientAppointmentList(filterName: element.projectName, patientDoctorAppointment: element)); } - - //Merging Booked & Confirmed Appointments into Upcoming Tab - _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientBookedAppointmentListHospital); - _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientBookedAppointmentListClinic); }); confirmedAppoList.forEach((element) { @@ -302,8 +298,8 @@ class _MyAppointmentsState extends State with SingleTickerProvid } //Merging Booked & Confirmed Appointments into Upcoming Tab - _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientConfirmedAppointmentListHospital); - _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientConfirmedAppointmentListClinic); + // _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientConfirmedAppointmentListHospital); + // _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientConfirmedAppointmentListClinic); }); arrivedAppoList.forEach((element) { @@ -333,6 +329,11 @@ class _MyAppointmentsState extends State with SingleTickerProvid // openAppointmentsTab(); }); + + //Merging Booked & Confirmed Appointments into Upcoming Tab + _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientBookedAppointmentListHospital); + _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientBookedAppointmentListClinic); + } openAppointmentsTab() async {