pull/359/head
haroon amjad 1 week ago
parent dc6b71a4ca
commit 0043e2917d

@ -364,7 +364,7 @@ class MyAppointmentsViewModel extends ChangeNotifier {
} }
changeTabToArrived() { changeTabToArrived() {
if (patientUpcomingAppointmentsHistoryList.isEmpty && patientArrivedAppointmentsHistoryList.isNotEmpty && selectedTabIndex == 0) { if (isFullArrivedAppointmentsLoaded && patientUpcomingAppointmentsHistoryList.isEmpty && patientArrivedAppointmentsHistoryList.isNotEmpty && selectedTabIndex == 0) {
selectedTabIndex = 1; selectedTabIndex = 1;
updateListWRTTab(1); updateListWRTTab(1);
notifyListeners(); notifyListeners();

@ -47,7 +47,7 @@ class _MyAppointmentsPageState extends State<MyAppointmentsPage> {
myAppointmentsViewModel.initAppointmentsViewModel(); myAppointmentsViewModel.initAppointmentsViewModel();
myAppointmentsViewModel.getPatientAppointments(true, false, isForTimeLine: false); myAppointmentsViewModel.getPatientAppointments(true, false, isForTimeLine: false);
} }
myAppointmentsViewModel.changeTabToArrived(); // myAppointmentsViewModel.changeTabToArrived();
}); });
super.initState(); super.initState();
} }

@ -2,8 +2,8 @@ name: hmg_patient_app_new
description: "New HMG Patient App" description: "New HMG Patient App"
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
#version: 0.0.42+43 version: 0.0.44+45
version: 0.0.12+1 #version: 0.0.14+1
environment: environment:
sdk: ">=3.6.0 <4.0.0" sdk: ">=3.6.0 <4.0.0"

Loading…
Cancel
Save