From 19e6954bc86bb7728f7ed49813206f1a3f014723 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Thu, 30 Sep 2021 20:40:47 +0300 Subject: [PATCH] updates --- lib/pages/BookAppointment/DoctorProfile.dart | 4 ++++ lib/pages/MyAppointments/AppointmentDetails.dart | 4 ++++ 2 files changed, 8 insertions(+) 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; }); });