This commit is contained in:
Hamza-Ayed
2024-06-20 00:08:36 +03:00
parent fcce6b9be5
commit 1cc0156cfd
6 changed files with 36 additions and 22 deletions

View File

@@ -149,7 +149,7 @@ class CardSeferWalletDriver extends StatelessWidget {
},
child: Container(
width: Get.width * .85,
height: Get.height * .25,
height: Get.height * .27,
decoration: BoxDecoration(
color: AppColor.deepPurpleAccent,
borderRadius: const BorderRadius.all(Radius.circular(12)),

View File

@@ -39,7 +39,7 @@ class PointsCaptain extends StatelessWidget {
style: AppStyle.title,
),
MyElevatedButton(
title: '💳 Pay with Credit Card'.tr,
title: 'Pay with Credit Card'.tr,
onPressed: () async {
Get.back();
await paymentController.payWithPayMob(
@@ -53,7 +53,7 @@ class PointsCaptain extends StatelessWidget {
await captainWalletController.addDriverWallet(
'visa-in', countPoint);
await captainWalletController.addSeferWallet(
'visa-in', pricePoint);
'visa-in', pricePoint.toString());
await captainWalletController
.getCaptainWalletFromBuyPoints();
});
@@ -62,7 +62,7 @@ class PointsCaptain extends StatelessWidget {
// Add some spacing between buttons
MyElevatedButton(
kolor: AppColor.redColor,
title: '💰 Pay with Wallet'.tr,
title: 'Pay with Wallet'.tr,
onPressed: () async {
Get.back();
await paymentController.payWithPayMobWallet(
@@ -76,7 +76,7 @@ class PointsCaptain extends StatelessWidget {
await captainWalletController.addDriverWallet(
'visa-in', countPoint);
await captainWalletController.addSeferWallet(
'visa-in', pricePoint);
'visa-in', pricePoint.toString());
await captainWalletController
.getCaptainWalletFromBuyPoints();
});

View File

@@ -258,7 +258,17 @@ class WalletCaptain extends StatelessWidget {
MyElevatedButton(
title: 'Transfer budget'.tr,
onPressed: () {
Get.to(() => const TransferBudgetPage());
if (double.parse(captainWalletController
.totalAmountVisa) >
15) {
Get.to(
() => const TransferBudgetPage());
} else {
Get.snackbar(
"You don't have enough money in your SEFER wallet"
.tr,
'');
}
})
],
),