updates & fixes

CR-20974-PDF-Results-In-Lab
haroon amjad 1 month ago
parent 6625256d52
commit cef6477591

@ -637,6 +637,7 @@ class _AppointmentCardState extends State<AppointmentCard> {
}
void _goToDetails(BuildContext context) {
if (widget.isLoading) return;
if (widget.isFromMedicalReport) return;
if (widget.isForEyeMeasurements) {
Navigator.of(context).push(

@ -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: () {

Loading…
Cancel
Save