From 121e5bd031d4e6182bac0b3488654ccb4a33db69 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 28 Apr 2026 11:11:55 +0300 Subject: [PATCH] Habib Wallet fix in services page --- .../hmg_services/services_page.dart | 25 ++++++++++++++++--- .../insurance_approval_details_page.dart | 9 +++---- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/lib/presentation/hmg_services/services_page.dart b/lib/presentation/hmg_services/services_page.dart index 4ea290b0..219a238a 100644 --- a/lib/presentation/hmg_services/services_page.dart +++ b/lib/presentation/hmg_services/services_page.dart @@ -533,10 +533,27 @@ class _ServicesPageState extends State { Spacer(), getIt.get().isAuthenticated ? Consumer(builder: (context, habibWalletVM, child) { - return Utils.getPaymentAmountWithSymbol2(num.parse(NumberFormat.decimalPattern().format(habibWalletVM.habibWalletAmount)), - isExpanded: false, letterSpacing: -1) - .toShimmer2(isShow: habibWalletVM.isWalletAmountLoading, radius: 12.r, width: 80.w, height: 24.h); - }) + return Row( + children: [ + Utils.buildSvgWithAssets( + icon: AppAssets.saudi_riyal_icon, + iconColor: AppColors.inputLabelTextColor, + width: 24.h, + height: 24.h, + fit: BoxFit.contain, + ), + SizedBox(width: 8.h), + NumberFormat.decimalPattern() + .format(habibWalletVM.habibWalletAmount) + .toString() + .toText28(isBold: true, isEnglishOnly: true) + .toShimmer2(isShow: habibWalletVM.isWalletAmountLoading, radius: 12.h, width: 80.h, height: 40.h), + ], + ); + // Utils.getPaymentAmountWithSymbol2(num.parse(NumberFormat.decimalPattern().format(habibWalletVM.habibWalletAmount)), + // isExpanded: false, letterSpacing: -1) + // .toShimmer2(isShow: habibWalletVM.isWalletAmountLoading, radius: 12.r, width: 80.w, height: 24.h); + }) : LocaleKeys.loginToViewWalletBalance.tr().toText12(isBold: true, maxLine: 2), Spacer(), getIt.get().isAuthenticated diff --git a/lib/presentation/insurance/insurance_approval_details_page.dart b/lib/presentation/insurance/insurance_approval_details_page.dart index 6d8e2524..29663938 100644 --- a/lib/presentation/insurance/insurance_approval_details_page.dart +++ b/lib/presentation/insurance/insurance_approval_details_page.dart @@ -108,10 +108,10 @@ class InsuranceApprovalDetailsPage extends StatelessWidget { richText: Row( mainAxisSize: MainAxisSize.min, children: [ - "${LocaleKeys.receiptOn.tr(context: context)} ".toText10(), + "${LocaleKeys.receiptOn.tr(context: context)} ".toText10(isBold: true), Directionality( textDirection: ui.TextDirection.ltr, - child: DateUtil.formatDateToDate(DateUtil.convertStringToDate(insuranceApprovalResponseModel.receiptOn), false).toText10(isEnglishOnly: true)), + child: DateUtil.formatDateToDate(DateUtil.convertStringToDate(insuranceApprovalResponseModel.receiptOn), false).toText10(isBold: true)), ], ), isEnglishOnly: true, @@ -121,15 +121,14 @@ class InsuranceApprovalDetailsPage extends StatelessWidget { richText: Row( mainAxisSize: MainAxisSize.min, children: [ - "${LocaleKeys.expiryOn.tr(context: context)} ".toText10(), + "${LocaleKeys.expiryOn.tr(context: context)} ".toText10(isBold: true), Directionality( textDirection: ui.TextDirection.ltr, - child: DateUtil.formatDateToDate(DateUtil.convertStringToDate(insuranceApprovalResponseModel.expiryDate), false).toText10(isEnglishOnly: true)), + child: DateUtil.formatDateToDate(DateUtil.convertStringToDate(insuranceApprovalResponseModel.expiryDate), false).toText10(isBold: true)), ], ), isEnglishOnly: true, ), - ], ), ],