|
|
|
|
@ -76,67 +76,80 @@ class HabibWalletCard extends StatelessWidget {
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(height: 4.h),
|
|
|
|
|
Consumer<HabibWalletViewModel>(builder: (context, habibWalletVM, child) {
|
|
|
|
|
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()
|
|
|
|
|
.toText32(isBold: true, isEnglishOnly: true)
|
|
|
|
|
.toShimmer2(isShow: habibWalletVM.isWalletAmountLoading, radius: 12.h, width: 80.h, height: 40.h),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 50.h),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.viewDetails.tr(context: context).toText12(color: AppColors.primaryRedColor),
|
|
|
|
|
SizedBox(width: 2.h),
|
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 10.h),
|
|
|
|
|
],
|
|
|
|
|
).onPress(() {
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
page: HabibWalletPage(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Consumer<HabibWalletViewModel>(builder: (context, habibWalletVM, child) {
|
|
|
|
|
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()
|
|
|
|
|
.toText32(isBold: true, isEnglishOnly: true)
|
|
|
|
|
.toShimmer2(isShow: habibWalletVM.isWalletAmountLoading, radius: 12.h, width: 80.h, height: 40.h),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 35.h),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.viewDetails.tr(context: context).toText12(color: AppColors.primaryRedColor, fontWeight: FontWeight.w500),
|
|
|
|
|
Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 10.h),
|
|
|
|
|
],
|
|
|
|
|
).onPress(() {
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
page: HabibWalletPage(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 200.h,
|
|
|
|
|
// width: 50.h,
|
|
|
|
|
child: Utils.getPaymentMethods(),
|
|
|
|
|
),
|
|
|
|
|
CustomButton(
|
|
|
|
|
height: 40.h,
|
|
|
|
|
icon: AppAssets.recharge_icon,
|
|
|
|
|
iconSize: 24.h,
|
|
|
|
|
backgroundColor: AppColors.infoColor,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
text: LocaleKeys.recharge.tr(context: context),
|
|
|
|
|
borderWidth: 0.w,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderColor: Colors.transparent,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(4, 0, 12, 0),
|
|
|
|
|
fontSize: 14.f,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.of(context).push(CustomPageRoute(page: RechargeWalletPage()));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
CustomButton(
|
|
|
|
|
height: 40.h,
|
|
|
|
|
icon: AppAssets.recharge_icon,
|
|
|
|
|
iconColor: AppColors.infoColor,
|
|
|
|
|
iconSize: 24.h,
|
|
|
|
|
backgroundColor: AppColors.infoColor.withAlpha(15),
|
|
|
|
|
textColor: AppColors.infoColor,
|
|
|
|
|
text: LocaleKeys.recharge.tr(context: context),
|
|
|
|
|
borderWidth: 0.w,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderColor: AppColors.infoColor.withAlpha(15),
|
|
|
|
|
padding: EdgeInsets.fromLTRB(4, 0, 12, 0),
|
|
|
|
|
fontSize: 14.f,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.of(context).push(CustomPageRoute(page: RechargeWalletPage()));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// children: [
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// width: 200.h,
|
|
|
|
|
// child: Utils.getPaymentMethods(),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|