|
|
|
|
@ -874,35 +874,35 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
|
(widget.patientAppointmentHistoryResponseModel.isParkingAvailable ?? false)
|
|
|
|
|
? MedicalFileCard(
|
|
|
|
|
label: LocaleKeys.getParkingQR.tr(context: context),
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
backgroundColor: AppColors.whiteColor,
|
|
|
|
|
svgIcon: AppAssets.appointment_parking_icon,
|
|
|
|
|
isLargeText: true,
|
|
|
|
|
iconSize: 36.w,
|
|
|
|
|
).onPress(() {
|
|
|
|
|
LoaderBottomSheet.showLoader(loadingText: LocaleKeys.loadingText.tr(context: context));
|
|
|
|
|
myAppointmentsViewModel.getParkingQR(
|
|
|
|
|
widget.patientAppointmentHistoryResponseModel.appointmentNo,
|
|
|
|
|
widget.patientAppointmentHistoryResponseModel.projectID,
|
|
|
|
|
onSuccess: (val) {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
},
|
|
|
|
|
onError: (err) {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
showCommonBottomSheetWithoutHeight(
|
|
|
|
|
context,
|
|
|
|
|
child: Utils.getErrorWidget(loadingText: err),
|
|
|
|
|
callBackFunc: () {},
|
|
|
|
|
isFullScreen: false,
|
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
|
// (widget.patientAppointmentHistoryResponseModel.isParkingAvailable ?? false)
|
|
|
|
|
// ? MedicalFileCard(
|
|
|
|
|
// label: LocaleKeys.getParkingQR.tr(context: context),
|
|
|
|
|
// textColor: AppColors.blackColor,
|
|
|
|
|
// backgroundColor: AppColors.whiteColor,
|
|
|
|
|
// svgIcon: AppAssets.appointment_parking_icon,
|
|
|
|
|
// isLargeText: true,
|
|
|
|
|
// iconSize: 36.w,
|
|
|
|
|
// ).onPress(() {
|
|
|
|
|
// LoaderBottomSheet.showLoader(loadingText: LocaleKeys.loadingText.tr(context: context));
|
|
|
|
|
// myAppointmentsViewModel.getParkingQR(
|
|
|
|
|
// widget.patientAppointmentHistoryResponseModel.appointmentNo,
|
|
|
|
|
// widget.patientAppointmentHistoryResponseModel.projectID,
|
|
|
|
|
// onSuccess: (val) {
|
|
|
|
|
// LoaderBottomSheet.hideLoader();
|
|
|
|
|
// },
|
|
|
|
|
// onError: (err) {
|
|
|
|
|
// LoaderBottomSheet.hideLoader();
|
|
|
|
|
// showCommonBottomSheetWithoutHeight(
|
|
|
|
|
// context,
|
|
|
|
|
// child: Utils.getErrorWidget(loadingText: err),
|
|
|
|
|
// callBackFunc: () {},
|
|
|
|
|
// isFullScreen: false,
|
|
|
|
|
// isCloseButtonVisible: true,
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// );
|
|
|
|
|
// })
|
|
|
|
|
// : SizedBox.shrink(),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
|