|
|
|
|
@ -165,11 +165,12 @@ class AppointmentDoctorCard extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
(patientAppointmentHistoryResponseModel.isLiveCareAppointment! ||
|
|
|
|
|
patientAppointmentHistoryResponseModel.isExecludeDoctor! ||
|
|
|
|
|
patientAppointmentHistoryResponseModel.isClinicReBookingAllowed! == false ||
|
|
|
|
|
patientAppointmentHistoryResponseModel.isActiveDoctor! == false ||
|
|
|
|
|
!Utils.isClinicAllowedForRebook(patientAppointmentHistoryResponseModel.clinicID))
|
|
|
|
|
(patientAppointmentHistoryResponseModel.isLiveCareAppointment ??
|
|
|
|
|
false ||
|
|
|
|
|
(patientAppointmentHistoryResponseModel.isExecludeDoctor ?? false) ||
|
|
|
|
|
patientAppointmentHistoryResponseModel.isClinicReBookingAllowed! == false ||
|
|
|
|
|
(patientAppointmentHistoryResponseModel.isActiveDoctor ?? true) == false ||
|
|
|
|
|
!Utils.isClinicAllowedForRebook(patientAppointmentHistoryResponseModel.clinicID))
|
|
|
|
|
? SizedBox.shrink()
|
|
|
|
|
: Utils.buildSvgWithAssets(icon: AppAssets.doctor_profile_icon, width: 20.h, height: 20.h, fit: BoxFit.scaleDown)
|
|
|
|
|
.onPress(() async {
|
|
|
|
|
@ -265,7 +266,7 @@ class AppointmentDoctorCard extends StatelessWidget {
|
|
|
|
|
// :
|
|
|
|
|
SizedBox.shrink();
|
|
|
|
|
} else {
|
|
|
|
|
return patientAppointmentHistoryResponseModel.isLiveCareAppointment!
|
|
|
|
|
return (patientAppointmentHistoryResponseModel.isLiveCareAppointment ?? false)
|
|
|
|
|
? CustomButton(
|
|
|
|
|
text: LocaleKeys.cancel.tr(),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|