From 6249daa67d13895ffc33463fc176974d42ff6efb Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Wed, 3 Jun 2026 10:30:59 +0300 Subject: [PATCH] parking QR disabled & other fixes --- lib/generated/locale_keys.g.dart | 11 ++-- .../appointment_details_page.dart | 58 +++++++++---------- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/lib/generated/locale_keys.g.dart b/lib/generated/locale_keys.g.dart index 1b4f6ae9..821c419f 100644 --- a/lib/generated/locale_keys.g.dart +++ b/lib/generated/locale_keys.g.dart @@ -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'; + } diff --git a/lib/presentation/appointments/appointment_details_page.dart b/lib/presentation/appointments/appointment_details_page.dart index d28a3054..ddf9ec86 100644 --- a/lib/presentation/appointments/appointment_details_page.dart +++ b/lib/presentation/appointments/appointment_details_page.dart @@ -874,35 +874,35 @@ class _AppointmentDetailsPageState extends State { } }) : 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(), ], ); }),