|
|
|
@ -66,14 +66,14 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
// bookAppointmentsViewModel.getLocation();
|
|
|
|
// bookAppointmentsViewModel.getLocation();
|
|
|
|
immediateLiveCareViewModel.initImmediateLiveCare();
|
|
|
|
immediateLiveCareViewModel.initImmediateLiveCare();
|
|
|
|
if (appState.isAuthenticated) {
|
|
|
|
if (appState.isAuthenticated) {
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientMyDoctors();
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientMyDoctors(isTop8: true);
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientFavouriteDoctors();
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientFavouriteDoctors();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
if (bookAppointmentsViewModel.selectedTabIndex == 1) {
|
|
|
|
if (bookAppointmentsViewModel.selectedTabIndex == 1) {
|
|
|
|
if (appState.isAuthenticated) {
|
|
|
|
if (appState.isAuthenticated) {
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientMyDoctors();
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientMyDoctors(isTop8: true);
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientFavouriteDoctors();
|
|
|
|
getIt.get<MyAppointmentsViewModel>().getPatientFavouriteDoctors();
|
|
|
|
showUnKnownClinicBottomSheet();
|
|
|
|
showUnKnownClinicBottomSheet();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -166,6 +166,7 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 14.h),
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 14.h),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).paddingSymmetrical(24.h, 0.h).onPress(() {
|
|
|
|
).paddingSymmetrical(24.h, 0.h).onPress(() {
|
|
|
|
|
|
|
|
myAppointmentsVM.setIsMyDoctorsDataToBeLoaded(true);
|
|
|
|
Navigator.of(context).push(
|
|
|
|
Navigator.of(context).push(
|
|
|
|
CustomPageRoute(
|
|
|
|
CustomPageRoute(
|
|
|
|
page: MyDoctorsPage(),
|
|
|
|
page: MyDoctorsPage(),
|
|
|
|
|