|
|
|
|
@ -86,9 +86,7 @@ class _HabibWalletState extends State<HabibWalletPage> {
|
|
|
|
|
SizedBox(height: 4.h),
|
|
|
|
|
Consumer<HabibWalletViewModel>(builder: (context, habibWalletVM, child) {
|
|
|
|
|
return Utils.getPaymentAmountWithSymbol2(
|
|
|
|
|
num.parse(
|
|
|
|
|
NumberFormat.decimalPattern().format(habibWalletVM.habibWalletAmount),
|
|
|
|
|
),
|
|
|
|
|
habibWalletVM.habibWalletAmount,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
iconColor: Colors.white,
|
|
|
|
|
iconSize: 16,
|
|
|
|
|
@ -104,28 +102,30 @@ class _HabibWalletState extends State<HabibWalletPage> {
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
height: 40.h,
|
|
|
|
|
icon: AppAssets.recharge_icon,
|
|
|
|
|
iconSize: 24.w,
|
|
|
|
|
backgroundColor: AppColors.infoColor,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
text: LocaleKeys.recharge.tr(context: context),
|
|
|
|
|
borderWidth: 0.w,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
borderColor: Colors.transparent,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(4, 0, 12, 0),
|
|
|
|
|
fontSize: 14.f,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.push(CustomPageRoute(
|
|
|
|
|
page: RechargeWalletPage(),
|
|
|
|
|
))
|
|
|
|
|
.then((val) {
|
|
|
|
|
habibWalletVM.initHabibWalletProvider();
|
|
|
|
|
habibWalletVM.getPatientBalanceAmount();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
Flexible(
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
height: 40.h,
|
|
|
|
|
icon: AppAssets.recharge_icon,
|
|
|
|
|
iconSize: 24.w,
|
|
|
|
|
backgroundColor: AppColors.infoColor,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
text: LocaleKeys.recharge.tr(context: context),
|
|
|
|
|
borderWidth: 0.w,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
borderColor: Colors.transparent,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(4, 0, 12, 0),
|
|
|
|
|
fontSize: 14.f,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.push(CustomPageRoute(
|
|
|
|
|
page: RechargeWalletPage(),
|
|
|
|
|
))
|
|
|
|
|
.then((val) {
|
|
|
|
|
habibWalletVM.initHabibWalletProvider();
|
|
|
|
|
habibWalletVM.getPatientBalanceAmount();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -147,7 +147,7 @@ class _HabibWalletState extends State<HabibWalletPage> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(child: habibWalletVM.habibWalletBalanceList[index].projectDescription!.toText16(isBold: true, color: AppColors.textColor)),
|
|
|
|
|
Utils.getPaymentAmountWithSymbol2(num.parse(NumberFormat.decimalPattern().format(habibWalletVM.habibWalletBalanceList[index].patientAdvanceBalanceAmount!)),
|
|
|
|
|
Utils.getPaymentAmountWithSymbol2(habibWalletVM.habibWalletBalanceList[index].patientAdvanceBalanceAmount!, //did the changes because of negative value
|
|
|
|
|
textColor: AppColors.textColor, iconColor: AppColors.textColor, iconSize: 18.h, isExpanded: false, fontSize: 28.f, fontWeight: FontWeight.w600, letterSpacing: -1),
|
|
|
|
|
],
|
|
|
|
|
).paddingSymmetrical(0, 12.h);
|
|
|
|
|
|