|
|
|
|
@ -73,7 +73,8 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
// bool shouldEnable = ((widget.appo.clinicID == 17 || widget.appo.clinicID == 47) || (widget.appo.isLiveCareAppointment && appoButtonsList[index].caller == "askDoc") || appoButtonsList[index].caller == "openReschedule");
|
|
|
|
|
bool shouldEnable = (((widget.appo.clinicID == 17 || widget.appo.clinicID == 47) && appoButtonsList[index].caller == "openReschedule") || (widget.appo.isLiveCareAppointment && appoButtonsList[index].caller == "askDoc"));
|
|
|
|
|
bool shouldEnable = (((widget.appo.clinicID == 17 || widget.appo.clinicID == 47) && appoButtonsList[index].caller == "openReschedule") ||
|
|
|
|
|
(widget.appo.isLiveCareAppointment && appoButtonsList[index].caller == "askDoc"));
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: shouldEnable
|
|
|
|
|
? null
|
|
|
|
|
@ -583,12 +584,26 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
navigateToToDoPage(BuildContext context, ToDoCountProviderModel model) {
|
|
|
|
|
if (widget.projectViewModel.isLogin) {
|
|
|
|
|
if (model.count != 0) {
|
|
|
|
|
Navigator.push(context, FadePage(page: ToDo(isShowAppBar: true)));
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: ToDo(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isFromMyAppointments: true,
|
|
|
|
|
appointment: widget.appo,
|
|
|
|
|
)));
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).upcomingEmpty);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
Navigator.push(context, FadePage(page: ToDo(isShowAppBar: true)));
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: ToDo(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isFromMyAppointments: true,
|
|
|
|
|
appointment: widget.appo,
|
|
|
|
|
)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|