Habib Wallet fix in services page

pull/303/head
haroon amjad 22 hours ago
parent 0e2b8db63a
commit 121e5bd031

@ -533,10 +533,27 @@ class _ServicesPageState extends State<ServicesPage> {
Spacer(),
getIt.get<AppState>().isAuthenticated
? Consumer<HabibWalletViewModel>(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<AppState>().isAuthenticated

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

Loading…
Cancel
Save