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

@@ -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,
'');
}
})
],
),