parking QR disabled & other fixes

pull/324/head
haroon amjad 1 week ago
parent bcdbfa99ed
commit 6249daa67d

@ -2,7 +2,7 @@
// ignore_for_file: constant_identifier_names
abstract class LocaleKeys {
abstract class LocaleKeys {
static const english = 'english';
static const arabic = 'arabic';
static const login = 'login';
@ -1851,7 +1851,7 @@ abstract class LocaleKeys {
static const invalidIbanFormat = 'invalidIbanFormat';
static const refundHistory = 'refundHistory';
static const noRefundHistoryFound = 'noRefundHistoryFound';
static const selectProcedures = 'selectProcedures';
static const selectProcedure = 'selectProcedure';
static const noProceduresAvailableForRefund = 'noProceduresAvailableForRefund';
static const selectAll = 'selectAll';
static const selectRefundMethod = 'selectRefundMethod';
@ -1866,6 +1866,7 @@ abstract class LocaleKeys {
static const refundReason5 = 'refundReason5';
static const refundReason6 = 'refundReason6';
static const refundReason7 = 'refundReason7';
static const selectProcedures = 'selectProcedures';
static const redeem = 'redeem';
static const points = 'points';
static const transactions = 'transactions';
@ -1873,14 +1874,14 @@ abstract class LocaleKeys {
static const visitsOrders = 'visitsOrders';
static const earned = 'earned';
static const getParkingQR = 'getParkingQR';
static const cannotOpenThisFile = 'cannotOpenThisFile';
static const thisInvoiceIsNotEligibleForRefund = 'thisInvoiceIsNotEligibleForRefund';
static const refundDetails = 'refundDetails';
static const requestNo = 'requestNo';
static const referenceNo = 'referenceNo';
static const refund = 'refund';
static const advanceNumber = 'advanceNumber';
static const amountOnly = 'amountOnly';
static const invoiceHistory = 'invoiceHistory';
static const refund = 'refund';
static const thisInvoiceIsNotEligibleForRefund = 'thisInvoiceIsNotEligibleForRefund';
}

@ -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(),
],
);
}),

Loading…
Cancel
Save