From 0772beed1b0f3f5bb5d1655627207bd9eb69542a Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 24 Aug 2026 16:15:01 +0300 Subject: [PATCH] PayTabs Tamara updates --- lib/core/paytabs_config.dart | 5 + lib/features/paytabs/paytabs_view_model.dart | 7 +- .../appointment_payment_page.dart | 129 +++++++---------- .../immediate_livecare_payment_page.dart | 81 +++++++++-- .../book_appointment/select_clinic_page.dart | 2 +- .../book_appointment/widgets/doctor_card.dart | 2 +- .../wallet_payment_confirm_page.dart | 10 +- .../ancillary_order_payment_page.dart | 132 +++--------------- lib/presentation/todo_section/todo_page.dart | 1 + lib/splashPage.dart | 5 + 10 files changed, 173 insertions(+), 201 deletions(-) diff --git a/lib/core/paytabs_config.dart b/lib/core/paytabs_config.dart index 4d90ee8f..b1ba0dd4 100644 --- a/lib/core/paytabs_config.dart +++ b/lib/core/paytabs_config.dart @@ -3,6 +3,11 @@ class PaymentSdkDefaultConfig { static const String profileID = "119730"; static const String serverKey = "SWJ9LD22MT-JLJZLBKTLK-WGWTLWGTWR"; static const String clientKey = "C7K2DQ-PDDN6B-69B2K7-P9GB9T"; + + // static const String profileID = "135577"; + // static const String serverKey = "SDJ9LD22LR-J9LRBKZDRD-ZRZKWDWBRR"; + // static const String clientKey = "CBK2DQ-PDPN6P-BR2K9D-VPBTB2"; + static const String defaultCurrency = "SAR"; static const double defaultAmount = 10.0; static const String defaultMerchantCountryCode = "SA"; diff --git a/lib/features/paytabs/paytabs_view_model.dart b/lib/features/paytabs/paytabs_view_model.dart index 3e36233d..1418cc55 100644 --- a/lib/features/paytabs/paytabs_view_model.dart +++ b/lib/features/paytabs/paytabs_view_model.dart @@ -57,7 +57,8 @@ class PayTabsViewModel extends ChangeNotifier { amount: amount.toDouble(), showBillingInfo: false, forceShippingInfo: false, - currencyCode: PaymentSdkDefaultConfig.defaultCurrency, + // currencyCode: PaymentSdkDefaultConfig.defaultCurrency, + currencyCode: getIt.get().getAuthenticatedUser()!.outSa! == 0 ? "SAR" : "AED", merchantCountryCode: PaymentSdkDefaultConfig.defaultMerchantCountryCode, billingDetails: BillingDetails( "${appState.getAuthenticatedUser()!.firstName} ${appState.getAuthenticatedUser()!.lastName}" ?? "HMG Patient", @@ -126,7 +127,8 @@ class PayTabsViewModel extends ChangeNotifier { amount: amount.toDouble(), showBillingInfo: false, forceShippingInfo: false, - currencyCode: PaymentSdkDefaultConfig.defaultCurrency, + // currencyCode: PaymentSdkDefaultConfig.defaultCurrency, + currencyCode: getIt.get().getAuthenticatedUser()!.outSa! == 0 ? "SAR" : "AED", merchantCountryCode: PaymentSdkDefaultConfig.defaultMerchantCountryCode, billingDetails: BillingDetails("${appState.getAuthenticatedUser()!.firstName} ${appState.getAuthenticatedUser()!.lastName}" ?? "HMG Patient", "CustID_${appState.getAuthenticatedUser()!.patientId.toString()}@HMG.com", appState.getAuthenticatedUser()!.mobileNumber ?? "0000000000", "Riyadh", "SA", "Riyadh", "Riyadh", "12626"), @@ -398,7 +400,6 @@ class PayTabsViewModel extends ChangeNotifier { tamaraRequestModel.accessCode = getIt.get().getAuthenticatedUser()!.mobileNumber!; tamaraRequestModel.appointmentNo = appointmentNo; tamaraRequestModel.customerName = "${getIt.get().getAuthenticatedUser()!.firstName} ${getIt.get().getAuthenticatedUser()!.lastName}"; - ; tamaraRequestModel.fileNumber = fileNumber; tamaraRequestModel.patientOutSA = getIt.get().getAuthenticatedUser()!.outSa == 1 ? true : false; tamaraRequestModel.deviceToken = await Utils.getStringFromPrefs(CacheConst.pushToken); diff --git a/lib/presentation/appointments/appointment_payment_page.dart b/lib/presentation/appointments/appointment_payment_page.dart index fb2c3043..6e9bb7b6 100644 --- a/lib/presentation/appointments/appointment_payment_page.dart +++ b/lib/presentation/appointments/appointment_payment_page.dart @@ -632,7 +632,6 @@ class _AppointmentPaymentPageState extends State { ).paddingSymmetrical(16.h, 16.h), ).paddingSymmetrical(24.h, 0.h).onPress(() { selectedPaymentMethod = "TAMARA"; - transID = Utils.getAppointmentTransID( widget.patientAppointmentHistoryResponseModel.projectID, widget.patientAppointmentHistoryResponseModel.clinicID, @@ -660,86 +659,64 @@ class _AppointmentPaymentPageState extends State { await payfortViewModel.updateTamaraRequestStatus(responseMessage: "success", status: "14", clientRequestID: transID, tamaraOrderID: tamaraOrderID); await payfortViewModel.markAppointmentAsTamaraPaid( projectID: widget.patientAppointmentHistoryResponseModel.projectID, appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo); - await myAppointmentsViewModel.createAdvancePayment( - paymentMethodName: selectedPaymentMethod, - projectID: widget.patientAppointmentHistoryResponseModel.projectID, - clinicID: widget.patientAppointmentHistoryResponseModel.clinicID, - appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(), - payedAmount: num.parse(myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString()), - paymentReference: transactionData.transactionReference!, - patientID: appState.getAuthenticatedUser()!.patientId.toString(), - patientType: appState.getAuthenticatedUser()!.patientType!, - onSuccess: (value) async { - print(value); - await myAppointmentsViewModel.addAdvanceNumberRequest( - advanceNumber: "Tamara-Advance-0000", - paymentReference: transactionData.transactionReference!, - appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(), - onSuccess: (value) async { - if (widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment!) { - //TODO: Implement LiveCare Check-In API Call - await myAppointmentsViewModel.insertLiveCareVIDARequest( - clientRequestID: transID, - patientAppointmentHistoryResponseModel: widget.patientAppointmentHistoryResponseModel, - onSuccess: (apiResponse) { - Future.delayed(Duration(milliseconds: 500), () { - myAppointmentsViewModel.setIsAppointmentDataToBeLoaded(true); - myAppointmentsViewModel.initAppointmentsViewModel(); - myAppointmentsViewModel.getPatientAppointments(true, false); - LoaderBottomSheet.hideLoader(); + await myAppointmentsViewModel.addAdvanceNumberRequest( + advanceNumber: "Tamara-Advance-0000", + paymentReference: transactionData.transactionReference!, + appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(), + onSuccess: (value) async { + if (widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment!) { + //TODO: Implement LiveCare Check-In API Call + await myAppointmentsViewModel.insertLiveCareVIDARequest( + clientRequestID: transID, + patientAppointmentHistoryResponseModel: widget.patientAppointmentHistoryResponseModel, + onSuccess: (apiResponse) { + Future.delayed(Duration(milliseconds: 500), () { + myAppointmentsViewModel.setIsAppointmentDataToBeLoaded(true); + myAppointmentsViewModel.initAppointmentsViewModel(); + myAppointmentsViewModel.getPatientAppointments(true, false); + LoaderBottomSheet.hideLoader(); - getIt.get().setIsWalletAmountToBeLoaded(true); - getIt.get().initHabibWalletProvider(); - getIt.get().getPatientBalanceAmount(); + getIt.get().setIsWalletAmountToBeLoaded(true); + getIt.get().initHabibWalletProvider(); + getIt.get().getPatientBalanceAmount(); - Navigator.pushAndRemoveUntil( - context, - CustomPageRoute( - page: LandingNavigation(), - ), - (r) => false); - }); - }, - onError: (error) {}); - } else { - await myAppointmentsViewModel.generateAppointmentQR( - clinicID: widget.patientAppointmentHistoryResponseModel.clinicID, - projectID: widget.patientAppointmentHistoryResponseModel.projectID, - appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(), - isFollowUp: myAppointmentsViewModel.patientAppointmentShareResponseModel!.isFollowup!, - onSuccess: (apiResponse) { - Future.delayed(Duration(milliseconds: 500), () { - myAppointmentsViewModel.setIsAppointmentDataToBeLoaded(true); - myAppointmentsViewModel.initAppointmentsViewModel(); - myAppointmentsViewModel.getPatientAppointments(true, false); + Navigator.pushAndRemoveUntil( + context, + CustomPageRoute( + page: LandingNavigation(), + ), + (r) => false); + }); + }, + onError: (error) {}); + } else { + await myAppointmentsViewModel.generateAppointmentQR( + clinicID: widget.patientAppointmentHistoryResponseModel.clinicID, + projectID: widget.patientAppointmentHistoryResponseModel.projectID, + appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(), + isFollowUp: myAppointmentsViewModel.patientAppointmentShareResponseModel!.isFollowup!, + onSuccess: (apiResponse) { + Future.delayed(Duration(milliseconds: 500), () { + myAppointmentsViewModel.setIsAppointmentDataToBeLoaded(true); + myAppointmentsViewModel.initAppointmentsViewModel(); + myAppointmentsViewModel.getPatientAppointments(true, false); - getIt.get().setIsWalletAmountToBeLoaded(true); - getIt.get().initHabibWalletProvider(); - getIt.get().getPatientBalanceAmount(); + getIt.get().setIsWalletAmountToBeLoaded(true); + getIt.get().initHabibWalletProvider(); + getIt.get().getPatientBalanceAmount(); - LoaderBottomSheet.hideLoader(); - Navigator.pushAndRemoveUntil( - context, - CustomPageRoute( - page: LandingNavigation(), - ), - (r) => false); - }); + LoaderBottomSheet.hideLoader(); + Navigator.pushAndRemoveUntil( + context, + CustomPageRoute( + page: LandingNavigation(), + ), + (r) => false); }); - } - }); - }, - onError: (err) { - LoaderBottomSheet.hideLoader(); - showCommonBottomSheetWithoutHeight( - context, - child: Utils.getErrorWidget(loadingText: err.toString()), - callBackFunc: () {}, - isFullScreen: false, - isCloseButtonVisible: true, - ); - }); - }, onError: (err) async { + }); + } + }); + }, onError: (err) async { await payfortViewModel.updateTamaraRequestStatus(responseMessage: "Failed", status: "00", clientRequestID: transID, tamaraOrderID: tamaraOrderID); showCommonBottomSheetWithoutHeight( context, diff --git a/lib/presentation/book_appointment/livecare/immediate_livecare_payment_page.dart b/lib/presentation/book_appointment/livecare/immediate_livecare_payment_page.dart index 9ef3f8fb..2ab1e303 100644 --- a/lib/presentation/book_appointment/livecare/immediate_livecare_payment_page.dart +++ b/lib/presentation/book_appointment/livecare/immediate_livecare_payment_page.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:developer'; import 'dart:io'; +import 'package:clarity_flutter/clarity_flutter.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:hmg_patient_app_new/core/api_consts.dart'; @@ -60,6 +61,7 @@ class _ImmediateLiveCarePaymentPageState extends State false); + Navigator.of(context).push( + CustomPageRoute( + page: ImmediateLiveCarePendingRequestPage(), + ), + ); + } else { + showCommonBottomSheetWithoutHeight( + context, + child: Utils.getErrorWidget(loadingText: "Unknown error occurred..."), + callBackFunc: () {}, + isFullScreen: false, + isCloseButtonVisible: true, + ); + } + }, + onError: (err) async {}, + ); + } else { + openPaymentURL("TAMARA"); + } }) : SizedBox.shrink(), ], @@ -524,17 +579,24 @@ class _ImmediateLiveCarePaymentPageState extends State { bookAppointmentsViewModel.setSelectedClinic(clinic); bookAppointmentsViewModel.setIsDoctorsListLoading(true); searchEditingController.text = ""; - if (clinic.isLiveCareClinicAndOnline ?? false) { + if (appState.isAuthenticated && (clinic.isLiveCareClinicAndOnline ?? false)) { Navigator.of(context).push( CustomPageRoute( page: SelectLivecareClinicPage( diff --git a/lib/presentation/book_appointment/widgets/doctor_card.dart b/lib/presentation/book_appointment/widgets/doctor_card.dart index 8a48465a..d2f431a9 100644 --- a/lib/presentation/book_appointment/widgets/doctor_card.dart +++ b/lib/presentation/book_appointment/widgets/doctor_card.dart @@ -86,7 +86,7 @@ class DoctorCard extends StatelessWidget { children: [ Utils.buildSvgWithAssets(icon: AppAssets.rating_icon, width: 15.w, height: 15.h, applyThemeColor: false), SizedBox(height: 2.h), - "${isLoading ? 4.78 : doctorsListResponseModel.decimalDoctorRate}".toText11(isBold: true, color: AppColors.textColor, isEnglishOnly: true), + "${isLoading ? 4.78 : doctorsListResponseModel.decimalDoctorRate ?? 5.0}".toText11(isBold: true, color: AppColors.textColor, isEnglishOnly: true), ], ), ).circle(100).toShimmer2(isShow: isLoading), diff --git a/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart b/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart index ce260ca0..1ddaaec9 100644 --- a/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart +++ b/lib/presentation/habib_wallet/wallet_payment_confirm_page.dart @@ -3,6 +3,7 @@ import 'dart:developer'; import 'dart:io'; import 'package:amazon_payfort/amazon_payfort.dart'; +import 'package:clarity_flutter/clarity_flutter.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -54,6 +55,7 @@ class _WalletPaymentConfirmPageState extends State { @override void initState() { + Clarity.setCurrentScreenName('Habib Wallet Payment Page'); scheduleMicrotask(() { payfortViewModel.initPayfortViewModel(); }); @@ -509,9 +511,11 @@ class _WalletPaymentConfirmPageState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ LocaleKeys.totalAmountToPay.tr(context: context).toText16(isBold: true), - Utils.getPaymentAmountWithSymbol( - NumberFormat.decimalPattern().format(habibWalletVM.walletRechargeAmount).toString().toText24(isBold: true, isEnglishOnly: true), AppColors.blackColor, 15.h, - isSaudiCurrency: true), + ClarityUnmask( + child: Utils.getPaymentAmountWithSymbol( + NumberFormat.decimalPattern().format(habibWalletVM.walletRechargeAmount).toString().toText24(isBold: true, isEnglishOnly: true), AppColors.blackColor, 15.h, + isSaudiCurrency: true), + ), ], ).paddingSymmetrical(24.h, 0.h), SizedBox(height: 12.h), diff --git a/lib/presentation/todo_section/ancillary_order_payment_page.dart b/lib/presentation/todo_section/ancillary_order_payment_page.dart index 36a2d7c5..e7553df5 100644 --- a/lib/presentation/todo_section/ancillary_order_payment_page.dart +++ b/lib/presentation/todo_section/ancillary_order_payment_page.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:developer'; import 'dart:io'; +import 'package:clarity_flutter/clarity_flutter.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:hmg_patient_app_new/core/app_assets.dart'; @@ -77,25 +78,10 @@ class _AncillaryOrderPaymentPageState extends State { @override void initState() { + Clarity.setCurrentScreenName('Ancillary Payment Page'); scheduleMicrotask(() { payfortViewModel.initPayfortViewModel(); payfortViewModel.setIsApplePayConfigurationLoading(false); - - myAppointmentsViewModel.getTamaraInstallmentsDetails().then((val) { - // if (myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel != null && myAppointmentsViewModel.patientAppointmentShareResponseModel != null) { - if (myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel != null && - myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel?.minLimit?.amount != null && - myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel?.maxLimit?.amount != null) { - if (widget.totalAmount >= myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel!.minLimit!.amount! && - widget.totalAmount <= myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel!.maxLimit!.amount!) { - if (mounted) { - setState(() { - isShowTamara = true; - }); - } - } - } - }); }); super.initState(); } @@ -393,84 +379,6 @@ class _AncillaryOrderPaymentPageState extends State { } }), SizedBox(height: 16.h), - isShowTamara - ? Container( - decoration: RoundedRectangleBorder().toSmoothCornerDecoration( - color: AppColors.whiteColor, - borderRadius: 20.h, - hasShadow: false, - ), - child: Row( - mainAxisSize: MainAxisSize.max, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Utils.buildImgWithAssets(icon: AppAssets.tamaraEng, width: 72.h, height: 25.h).toShimmer2(isShow: false), - SizedBox(height: 16.h), - LocaleKeys.tamara.tr(context: context).toText16(isBold: true).toShimmer2(isShow: false), - ], - ), - SizedBox(width: 8.h), - const Spacer(), - Transform.flip( - flipX: appState.isArabic(), - child: Utils.buildSvgWithAssets( - icon: AppAssets.forward_arrow_icon_small, - iconColor: AppColors.blackColor, - width: 18.h, - height: 13.h, - fit: BoxFit.contain, - ).toShimmer2(isShow: false), - ), - ], - ).paddingSymmetrical(16.h, 16.h), - ).paddingSymmetrical(24.h, 0.h).onPress(() { - selectedPaymentMethod = "TAMARA"; - transID = Utils.getAppointmentTransID( - widget.projectID, - widget.clinicID, - widget.appointmentNoVida, - ); - if (appState.isPaytabsEnabled) { - paytabsViewModel.setAlternatePaymentConfiguration("Ancillary Order Payment", widget.totalAmount); - paytabsViewModel.startAlternatePayment( - liveServiceID: "0", - appointmentDate: DateUtil.convertDateToString(widget.appointmentDate!), - appointmentNo: widget.appointmentNoVida.toString(), - doctorID: "0", - transactionID: transID, - amount: widget.totalAmount.toString(), - fileNumber: appState.getAuthenticatedUser()!.patientId.toString(), - serviceID: "2", - projectID: widget.projectID.toString(), - isSchedule: false, - onSuccess: (PaytabsTransactionResponseModel transactionData) async { - tamaraOrderID = transactionData.cartID!; - // transID = transactionData.transactionReference!; - LoaderBottomSheet.showLoader(loadingText: LocaleKeys.checkingPaymentStatusPleaseWait.tr(context: context)); - await payfortViewModel.updateTamaraRequestStatus(responseMessage: "success", status: "14", clientRequestID: transID, tamaraOrderID: tamaraOrderID); - _createAdvancePayment( - paymentAmount: widget.totalAmount, - paymentReference: transactionData.transactionReference!, - paymentMethod: selectedPaymentMethod, - ); - }, - onError: (err) async { - await payfortViewModel.updateTamaraRequestStatus(responseMessage: "Failed", status: "00", clientRequestID: transID, tamaraOrderID: tamaraOrderID); - showCommonBottomSheetWithoutHeight( - context, - child: Utils.getErrorWidget(loadingText: err.toString()), - callBackFunc: () {}, - isFullScreen: false, - isCloseButtonVisible: true, - ); - }); - } else { - _openPaymentURL("tamara"); - } - }) - : SizedBox.shrink(), ], ), ), @@ -514,11 +422,13 @@ class _AncillaryOrderPaymentPageState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ LocaleKeys.amountBeforeTax.tr(context: context).toText14(isBold: true), - Utils.getPaymentAmountWithSymbol( - amountBeforeTax.toStringAsFixed(2).toText16(isBold: true), - AppColors.blackColor, - 13, - isSaudiCurrency: true, + ClarityUnmask( + child: Utils.getPaymentAmountWithSymbol( + amountBeforeTax.toStringAsFixed(2).toText16(isBold: true), + AppColors.blackColor, + 13, + isSaudiCurrency: true, + ), ), ], ).paddingSymmetrical(24.h, 0.h), @@ -528,11 +438,13 @@ class _AncillaryOrderPaymentPageState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ LocaleKeys.vat15.tr(context: context).toText14(isBold: true, color: AppColors.greyTextColor), - Utils.getPaymentAmountWithSymbol( - taxAmount.toStringAsFixed(2).toText14(isBold: true, color: AppColors.greyTextColor), - AppColors.greyTextColor, - 13, - isSaudiCurrency: true, + ClarityUnmask( + child: Utils.getPaymentAmountWithSymbol( + taxAmount.toStringAsFixed(2).toText14(isBold: true, color: AppColors.greyTextColor), + AppColors.greyTextColor, + 13, + isSaudiCurrency: true, + ), ), ], ).paddingSymmetrical(24.h, 0.h), @@ -544,11 +456,13 @@ class _AncillaryOrderPaymentPageState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ "".toText14(isBold: true), - Utils.getPaymentAmountWithSymbol( - widget.totalAmount.toStringAsFixed(2).toText24(isBold: true), - AppColors.blackColor, - 17, - isSaudiCurrency: true, + ClarityUnmask( + child: Utils.getPaymentAmountWithSymbol( + widget.totalAmount.toStringAsFixed(2).toText24(isBold: true), + AppColors.blackColor, + 17, + isSaudiCurrency: true, + ), ), ], ).paddingSymmetrical(24.h, 0.h), diff --git a/lib/presentation/todo_section/todo_page.dart b/lib/presentation/todo_section/todo_page.dart index 2f1061d2..7f59b2d2 100644 --- a/lib/presentation/todo_section/todo_page.dart +++ b/lib/presentation/todo_section/todo_page.dart @@ -34,6 +34,7 @@ class _ToDoPageState extends State { scheduleMicrotask(() async { if (appState.isAuthenticated) { await todoSectionViewModel.initializeTodoSectionViewModel(); + todoSectionViewModel.setProcessingPayment(false); } }); super.initState(); diff --git a/lib/splashPage.dart b/lib/splashPage.dart index 8b39bf28..fe223fc2 100644 --- a/lib/splashPage.dart +++ b/lib/splashPage.dart @@ -13,9 +13,11 @@ import 'package:hmg_patient_app_new/core/app_assets.dart'; import 'package:hmg_patient_app_new/core/app_export.dart'; import 'package:hmg_patient_app_new/core/app_state.dart'; import 'package:hmg_patient_app_new/core/dependencies.dart'; +import 'package:hmg_patient_app_new/core/enums.dart'; import 'package:hmg_patient_app_new/core/utils/utils.dart'; import 'package:hmg_patient_app_new/extensions/widget_extensions.dart'; import 'package:hmg_patient_app_new/features/authentication/authentication_view_model.dart'; +import 'package:hmg_patient_app_new/main.dart'; import 'package:hmg_patient_app_new/presentation/home/app_update_page.dart'; import 'package:hmg_patient_app_new/presentation/home/navigation_screen.dart'; import 'package:hmg_patient_app_new/presentation/onboarding/onboarding_screen.dart'; @@ -58,6 +60,9 @@ class _SplashScreenState extends State { () async { ApiConsts.setBackendURLs(); PushNotificationHandler().init(context); // Asyncronously + // if (ApiConsts.appEnvironmentType == AppEnvironmentTypeEnum.uat) { + // HttpOverrides.global = MyHttpOverrides(); + // } }, );