diff --git a/lib/pages/BookAppointment/DoctorProfile.dart b/lib/pages/BookAppointment/DoctorProfile.dart index 4d67177d..f5b6de95 100644 --- a/lib/pages/BookAppointment/DoctorProfile.dart +++ b/lib/pages/BookAppointment/DoctorProfile.dart @@ -126,6 +126,10 @@ class _DoctorProfileState extends State with TickerProviderStateM ), ).then((value) { setState(() { + if (_tabController.index == 0) { + _tabController.animateTo((_tabController.index + 1) % 2); + showFooterButton = true; + } this.doctorSchedule = value; }); }); diff --git a/lib/pages/MyAppointments/AppointmentDetails.dart b/lib/pages/MyAppointments/AppointmentDetails.dart index ac4fe745..3883432b 100644 --- a/lib/pages/MyAppointments/AppointmentDetails.dart +++ b/lib/pages/MyAppointments/AppointmentDetails.dart @@ -120,6 +120,10 @@ class _AppointmentDetailsState extends State with SingleTick ), ).then((value) { setState(() { + if (_tabController.index == 0) { + _tabController.animateTo((_tabController.index + 1) % 2); + this.enableFooterButton(); + } widget.doctorSchedule = value; }); });