|
|
|
|
@ -533,9 +533,26 @@ 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(),
|
|
|
|
|
|