|
|
|
|
@ -874,35 +874,76 @@ 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();
|
|
|
|
|
showCommonBottomSheetWithoutHeight(
|
|
|
|
|
title: LocaleKeys.parkingQR.tr(context: context),
|
|
|
|
|
context,
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
// height: 150.h,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.parkingQRDesc.tr(context: context).toText16(),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Image.memory(
|
|
|
|
|
myAppointmentsViewModel.parkingQRImageBytes!,
|
|
|
|
|
width: 156.w,
|
|
|
|
|
height: 156.h,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
gaplessPlayback: true, // Prevents blink during image rebuild
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: LocaleKeys.done.tr(context: context),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
openDoctorScheduleCalendar();
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: AppColors.primaryRedColor,
|
|
|
|
|
borderColor: AppColors.primaryRedColor,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
fontSize: 16.f,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
|
|
|
height: 50.h,
|
|
|
|
|
icon: AppAssets.checkmark_icon,
|
|
|
|
|
iconColor: Colors.white,
|
|
|
|
|
iconSize: 18.h,
|
|
|
|
|
).paddingSymmetrical(0.h, 0.h),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
callBackFunc: () {},
|
|
|
|
|
isFullScreen: false,
|
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
onError: (err) {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
showCommonBottomSheetWithoutHeight(
|
|
|
|
|
context,
|
|
|
|
|
child: Utils.getErrorWidget(loadingText: err),
|
|
|
|
|
callBackFunc: () {},
|
|
|
|
|
isFullScreen: false,
|
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
|