pull/286/head
haroon amjad 20 hours ago
parent 782cd01b4b
commit 9e9344cd0f

@ -320,10 +320,12 @@ class MyAppointmentsViewModel extends ChangeNotifier {
// if (patientArrivedAppointmentsHistoryList.isNotEmpty) { // if (patientArrivedAppointmentsHistoryList.isNotEmpty) {
isPatientHasQueueAppointment = false; isPatientHasQueueAppointment = false;
notifyListeners(); notifyListeners();
if(patientArrivedAppointmentsHistoryList.isNotEmpty) {
if (Utils.isDateToday(DateUtil.convertStringToDate(patientArrivedAppointmentsHistoryList.first.appointmentDate))) { if (Utils.isDateToday(DateUtil.convertStringToDate(patientArrivedAppointmentsHistoryList.first.appointmentDate))) {
// getPatientAppointmentQueueDetails(appointmentNo: patientArrivedAppointmentsHistoryList.first.appointmentNo, patientID: patientArrivedAppointmentsHistoryList.first.patientID); // getPatientAppointmentQueueDetails(appointmentNo: patientArrivedAppointmentsHistoryList.first.appointmentNo, patientID: patientArrivedAppointmentsHistoryList.first.patientID);
getPatientAppointmentQueueDetails(); getPatientAppointmentQueueDetails();
} }
}
// } // }
debugPrint('Upcoming Appointments: ${patientUpcomingAppointmentsHistoryList.length}'); debugPrint('Upcoming Appointments: ${patientUpcomingAppointmentsHistoryList.length}');

@ -528,6 +528,8 @@ class _LandingPageState extends State<LandingPage> {
}, },
), ),
) )
: immediateLiveCareVM.patientHasPendingLiveCareRequest
? _buildLiveCareRequestCard().paddingSymmetrical(24.h, 16.h)
: Container( : Container(
width: double.infinity, width: double.infinity,
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24.r, hasShadow: true), decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24.r, hasShadow: true),

Loading…
Cancel
Save