Compare commits

...

2 Commits

@ -135,21 +135,21 @@ class _DoctorProfileState extends State<DoctorProfile> with TickerProviderStateM
showConfirmMessageDialog: false, showConfirmMessageDialog: false,
isNeedToShowButton: !widget.isLiveCareAppointment, isNeedToShowButton: !widget.isLiveCareAppointment,
onTap: () { onTap: () {
Navigator.push( // Navigator.push(
context, // context,
FadePage( // FadePage(
page: SchedulePage(doctorList: widget.doctor), // page: SchedulePage(doctorList: widget.doctor),
), // ),
).then((value) { // ).then((value) {
setState(() { // setState(() {
if (_tabController.index == 0) { // if (_tabController.index == 0) {
_tabController.animateTo((_tabController.index + 1) % 2); // _tabController.animateTo((_tabController.index + 1) % 2);
showFooterButton = true; // showFooterButton = true;
} // }
this.doctorSchedule = value; // this.doctorSchedule = value;
}); // });
}); // });
projectViewModel.analytics.appointment.book_appointment_schedule(appointment_type: 'regular', doctor: widget.doctor); // projectViewModel.analytics.appointment.book_appointment_schedule(appointment_type: 'regular', doctor: widget.doctor);
}, },
onRatingAndReviewTap: () { onRatingAndReviewTap: () {
getDoctorRatingsDetails(); getDoctorRatingsDetails();
@ -162,12 +162,12 @@ class _DoctorProfileState extends State<DoctorProfile> with TickerProviderStateM
onTap: (index) { onTap: (index) {
setState(() { setState(() {
if (index == 1) { if (index == 1) {
if (widget.doctor.clinicID == 23 || widget.doctor.clinicID == 47 || widget.isLiveCareAppointment) { // if (widget.doctor.clinicID == 23 || widget.doctor.clinicID == 47 || widget.isLiveCareAppointment) {
_tabController.index = _tabController.previousIndex; _tabController.index = _tabController.previousIndex;
showFooterButton = false; showFooterButton = false;
} else { // } else {
showFooterButton = true; // showFooterButton = true;
} // }
} }
print(showFooterButton); print(showFooterButton);
}); });
@ -185,6 +185,7 @@ class _DoctorProfileState extends State<DoctorProfile> with TickerProviderStateM
), ),
), ),
Tab( Tab(
child: Text( child: Text(
TranslationBase.of(context).availableAppo, TranslationBase.of(context).availableAppo,
style: TextStyle( style: TextStyle(

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

@ -672,19 +672,20 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
// changeIndex: changeCurrentTab, // changeIndex: changeCurrentTab,
// index: currentTab, // index: currentTab,
// ), // ),
floatingActionButtonLocation: FloatingActionButtonLocation.endContained, // floatingActionButtonLocation: FloatingActionButtonLocation.endContained,
floatingActionButton: // floatingActionButton:
(projectViewModel.havePrivilege(34) && currentTab == 0) // (projectViewModel.havePrivilege(34) && currentTab == 0)
? Padding( // ? Padding(x
padding: const EdgeInsets.only(bottom: 50.0, right: 10), // padding: const EdgeInsets.only(bottom: 50.0, right: 10),
child: FloatingButton( // child: FloatingButton(
elevation: true, // elevation: true,
onTap: () { // onTap: () {
changeCurrentTab(2); // changeCurrentTab(2);
}, // },
), // ),
) // )
: null); // : null);
);
} }
triggerRobot() { triggerRobot() {

Loading…
Cancel
Save