6/20/1
This commit is contained in:
@@ -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)),
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
'');
|
||||
}
|
||||
})
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user