my appointments fixes

merge-update-with-lab-changes
haroon amjad 2 years ago
parent 27ed5c95f2
commit 98a5b7d049

@ -270,10 +270,6 @@ class _MyAppointmentsState extends State<MyAppointments> with SingleTickerProvid
} else { } else {
_patientBookedAppointmentListHospital.add(PatientAppointmentList(filterName: element.projectName, patientDoctorAppointment: element)); _patientBookedAppointmentListHospital.add(PatientAppointmentList(filterName: element.projectName, patientDoctorAppointment: element));
} }
//Merging Booked & Confirmed Appointments into Upcoming Tab
_patientBookedAndConfirmedAppointmentListHospital.addAll(_patientBookedAppointmentListHospital);
_patientBookedAndConfirmedAppointmentListClinic.addAll(_patientBookedAppointmentListClinic);
}); });
confirmedAppoList.forEach((element) { confirmedAppoList.forEach((element) {
@ -302,8 +298,8 @@ class _MyAppointmentsState extends State<MyAppointments> with SingleTickerProvid
} }
//Merging Booked & Confirmed Appointments into Upcoming Tab //Merging Booked & Confirmed Appointments into Upcoming Tab
_patientBookedAndConfirmedAppointmentListHospital.addAll(_patientConfirmedAppointmentListHospital); // _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientConfirmedAppointmentListHospital);
_patientBookedAndConfirmedAppointmentListClinic.addAll(_patientConfirmedAppointmentListClinic); // _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientConfirmedAppointmentListClinic);
}); });
arrivedAppoList.forEach((element) { arrivedAppoList.forEach((element) {
@ -333,6 +329,11 @@ class _MyAppointmentsState extends State<MyAppointments> with SingleTickerProvid
// openAppointmentsTab(); // openAppointmentsTab();
}); });
//Merging Booked & Confirmed Appointments into Upcoming Tab
_patientBookedAndConfirmedAppointmentListHospital.addAll(_patientBookedAppointmentListHospital);
_patientBookedAndConfirmedAppointmentListClinic.addAll(_patientBookedAppointmentListClinic);
} }
openAppointmentsTab() async { openAppointmentsTab() async {

Loading…
Cancel
Save