parking QR disabled & other fixes

pull/324/head
haroon amjad 4 weeks ago
parent bcdbfa99ed
commit 6249daa67d

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

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

Loading…
Cancel
Save