This commit is contained in:
Hamza-Ayed
2023-12-10 00:01:36 +03:00
parent db3123320b
commit ba90f96e77
24 changed files with 465 additions and 184 deletions

View File

@@ -57,7 +57,7 @@ class PassengerWalletDialoge extends StatelessWidget {
},
),
Text(
'10 and get 4% discount'.tr,
'10\$ and get 3% discount'.tr,
style: AppStyle.title,
),
],
@@ -78,7 +78,7 @@ class PassengerWalletDialoge extends StatelessWidget {
},
),
Text(
'20 and get 6% discount'.tr,
'20\$ and get 4% discount'.tr,
style: AppStyle.title,
),
],
@@ -98,7 +98,7 @@ class PassengerWalletDialoge extends StatelessWidget {
},
),
Text(
'40 and get 8% discount'.tr,
'40\$ and get 6% discount'.tr,
style: AppStyle.title,
),
],
@@ -118,7 +118,7 @@ class PassengerWalletDialoge extends StatelessWidget {
},
),
Text(
'100 and get 11% discount'.tr,
'100\$ and get 9% discount'.tr,
style: AppStyle.title,
),
],
@@ -142,9 +142,12 @@ class PassengerWalletDialoge extends StatelessWidget {
onPressed: () {
if (controller.selectedAmount != 0) {
controller.makePaymentStripe(
controller.selectedAmount as int,
'USD',
() => controller.addPassengerWallet());
controller.selectedAmount as int, 'USD',
() {
controller.addPassengerWallet();
controller.changePromoSheetDialogue();
controller.getPassengerWallet();
});
} else {
Toast.show(
context,