|
|
|
|
@ -131,20 +131,20 @@ class _AppointmentDetailsState extends State<AppointmentDetails> with SingleTick
|
|
|
|
|
showConfirmMessageDialog: false,
|
|
|
|
|
onRatingAndReviewTap: getDoctorRatingsDetails,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: SchedulePage(doctorList: doctorList, appo: widget.appo),
|
|
|
|
|
),
|
|
|
|
|
).then((value) {
|
|
|
|
|
setState(() {
|
|
|
|
|
if (_tabController!.index == 0) {
|
|
|
|
|
_tabController!.animateTo((_tabController!.index + 1) % 2);
|
|
|
|
|
this.enableFooterButton();
|
|
|
|
|
}
|
|
|
|
|
widget.doctorSchedule = value;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: SchedulePage(doctorList: doctorList, appo: widget.appo),
|
|
|
|
|
// ),
|
|
|
|
|
// ).then((value) {
|
|
|
|
|
// setState(() {
|
|
|
|
|
// if (_tabController!.index == 0) {
|
|
|
|
|
// _tabController!.animateTo((_tabController!.index + 1) % 2);
|
|
|
|
|
// this.enableFooterButton();
|
|
|
|
|
// }
|
|
|
|
|
// widget.doctorSchedule = value;
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
|
@ -154,20 +154,22 @@ class _AppointmentDetailsState extends State<AppointmentDetails> with SingleTick
|
|
|
|
|
onTap: (index) {
|
|
|
|
|
setState(() {
|
|
|
|
|
if (index == 1) {
|
|
|
|
|
if (widget.appo.clinicID == 17 ||
|
|
|
|
|
widget.appo.clinicID == 47 ||
|
|
|
|
|
widget.appo.clinicID == 23 ||
|
|
|
|
|
widget.appo.clinicID == 253 ||
|
|
|
|
|
widget.appo.clinicID == 265 ||
|
|
|
|
|
widget.appo.clinicID == 134 ||
|
|
|
|
|
widget.appo.clinicID == 253 ||
|
|
|
|
|
widget.appo.isExecludeDoctor! ||
|
|
|
|
|
widget.appo.isLiveCareAppointment!) {
|
|
|
|
|
_tabController!.index = _tabController!.previousIndex;
|
|
|
|
|
AppointmentDetails.showFooterButton = false;
|
|
|
|
|
} else {
|
|
|
|
|
AppointmentDetails.showFooterButton = true;
|
|
|
|
|
}
|
|
|
|
|
// if (widget.appo.clinicID == 17 ||
|
|
|
|
|
// widget.appo.clinicID == 47 ||
|
|
|
|
|
// widget.appo.clinicID == 23 ||
|
|
|
|
|
// widget.appo.clinicID == 253 ||
|
|
|
|
|
// widget.appo.clinicID == 265 ||
|
|
|
|
|
// widget.appo.clinicID == 134 ||
|
|
|
|
|
// widget.appo.clinicID == 253 ||
|
|
|
|
|
// widget.appo.isExecludeDoctor! ||
|
|
|
|
|
// widget.appo.isLiveCareAppointment!) {
|
|
|
|
|
// _tabController!.index = _tabController!.previousIndex;
|
|
|
|
|
// AppointmentDetails.showFooterButton = false;
|
|
|
|
|
// } else {
|
|
|
|
|
// AppointmentDetails.showFooterButton = true;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
@ -591,13 +593,13 @@ class _AppointmentDetailsState extends State<AppointmentDetails> with SingleTick
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void openSchedule() {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: SchedulePage(
|
|
|
|
|
doctorList: getDoctorObject(),
|
|
|
|
|
appo: widget.appo,
|
|
|
|
|
)));
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// FadePage(
|
|
|
|
|
// page: SchedulePage(
|
|
|
|
|
// doctorList: getDoctorObject(),
|
|
|
|
|
// appo: widget.appo,
|
|
|
|
|
// )));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setTab() async {
|
|
|
|
|
|