This commit is contained in:
Hamza-Ayed
2023-10-18 22:38:06 +03:00
parent 5cbd03f7d8
commit 805754a599
8 changed files with 208 additions and 17 deletions

View File

@@ -62,12 +62,14 @@ class PassengerWallet extends StatelessWidget {
child:
box.read(BoxName.passengerWalletTotal) == null
? Text(
'You Dont Have Any amount in ${AppInfo.appName} Wallet!'
.tr,
'You Dont Have Any amount in'.tr +
' ${AppInfo.appName}' +
'Wallet!'.tr,
style: AppStyle.title,
)
: Text(
'You Have ${box.read(BoxName.passengerWalletTotal).toString()} JD in ${AppInfo.appName} Wallet',
'You Have'.tr +
' ${box.read(BoxName.passengerWalletTotal).toString()} JD in ${AppInfo.appName} Wallet',
style: AppStyle.title,
),
),
@@ -194,7 +196,7 @@ class PassengerWallet extends StatelessWidget {
left: Get.width * .3,
right: Get.width * .3,
child: MyElevatedButton(
title: 'Show Promos',
title: 'Show Promos'.tr,
onPressed: () {
controller.changePromoSheetDialogue();
},
@@ -313,7 +315,7 @@ class PassengerWallet extends StatelessWidget {
)),
const Spacer(),
MyElevatedButton(
title: 'Pay with Your PayPal',
title: 'Pay with Your PayPal'.tr,
onPressed: () {
if (controller.selectedAmount != 0) {
print(controller.selectedAmount);
@@ -489,7 +491,7 @@ class PassengerWallet extends StatelessWidget {
},
),
MyElevatedButton(
title: 'Cancel',
title: 'Cancel'.tr,
kolor: AppColor.redColor,
onPressed: () {
controller.changePromoSheetDialogue();