This commit is contained in:
Hamza-Ayed
2024-07-02 00:16:16 +03:00
parent 94d70237ff
commit b271101979
26 changed files with 128 additions and 31 deletions

View File

@@ -27,14 +27,14 @@ class ConnectWidget extends StatelessWidget {
builder: (homeCaptainController) => int.parse(
orderRequestController.countRefuse) >
3 ||
double.parse(captainWalletController.totalPoints) < -300
double.parse(captainWalletController.totalPoints) < -3000
? CupertinoButton(
onPressed: () {
Get.defaultDialog(
// backgroundColor: CupertinoColors.destructiveRed,
barrierDismissible: false,
title: double.parse(captainWalletController.totalPoints) <
-300
-3000
? 'You dont have Points'.tr
: 'You Are Stopped For this Day !'.tr,
titleStyle: AppStyle.title,
@@ -44,7 +44,7 @@ class ConnectWidget extends StatelessWidget {
onPressed: () async {
double.parse(
captainWalletController.totalPoints) <
-300
-3000
? await Get.find<TextToSpeechController>()
.speakText(
'You must be recharge your Account'
@@ -58,7 +58,7 @@ class ConnectWidget extends StatelessWidget {
),
Text(
double.parse(captainWalletController.totalPoints) <
-300
-3000
? 'You must be recharge your Account'.tr
: 'You Refused 3 Rides this Day that is the reason \nSee you Tomorrow!'
.tr,
@@ -68,7 +68,7 @@ class ConnectWidget extends StatelessWidget {
),
confirm:
double.parse(captainWalletController.totalPoints) <
-300
-3000
? MyElevatedButton(
title: 'Recharge my Account'.tr,
onPressed: () {

View File

@@ -3,12 +3,48 @@ import 'package:get/get.dart';
class BankController extends GetxController {
String selectedBank = '';
// Map<String, String> bankNames = {
// 'CIB Bank'.tr: 'CIB',
// 'National Bank of Egypt'.tr: 'NBE',
// 'QNB Al Ahli'.tr: 'QNB',
// 'Bank Misr'.tr: 'BM',
// // Add other bank full names and short names here
// };
Map<String, String> bankNames = {
'CIB Bank'.tr: 'CIB',
'Commercial International Bank (CIB)'.tr: 'CIB',
'National Bank of Egypt'.tr: 'NBE',
'QNB Al Ahli'.tr: 'QNB',
'Bank Misr'.tr: 'BM',
// Add other bank full names and short names here
'Qatar National Bank (QNB Alahli)'.tr: 'QNB',
'Banque Misr'.tr: 'BM',
'Banque du Caire (BDC)'.tr: 'BDC',
'HSBC Bank Egypt'.tr: 'HSBC',
'Faisal Islamic Bank of Egypt (FAIB)'.tr: 'FAIB',
'Arab African International Bank (AAIB)'.tr: 'AAIB',
'Export Development Bank of Egypt (EDBE)'.tr: 'EDBE',
'Industrial Development Bank of Egypt (IDB)'.tr: 'IDB',
'Suez Canal Bank (SCB)'.tr: 'SCB',
'Bank Audi Egypt'.tr: 'BAE',
'Union National Bank Egypt'.tr: 'UNB',
'Al Baraka Bank Egypt'.tr: 'ABE',
'Egyptian Gulf Bank (EG Bank)'.tr: 'EGB',
'Housing and Development Bank (HDB)'.tr: 'HDB',
'The United Bank of Egypt (UB)'.tr: 'UB',
'Emirates NBD (ENBD)'.tr: 'ENBD',
'Al Ahli Bank of Kuwait - Egypt (ABK-Egypt)'.tr: 'ABK',
'National Bank of Kuwait - Egypt (NBK-Egypt)'.tr: 'NBK',
'First Abu Dhabi Bank (FAB)'.tr: 'FAB',
'Abu Dhabi Islamic Bank (ADIB)'.tr: 'ADIB',
'Arab African International Bank (AAIB)'.tr: 'AAIB',
'Egyptian Arab Land Bank (EALB)'.tr: 'EALB',
'Faisal Islamic Bank of Egypt (FAIB)'.tr: 'FAIB',
'Blom Bank (BLOM)'.tr: 'BLOM',
'Abu Dhabi Commercial Bank - Egypt (ADCB)'.tr: 'ADCB',
'Nasser Social Bank (NSB)'.tr: 'NSB',
'Industrial Development Bank of Egypt (IDB)'.tr: 'IDB',
'Arab International Bank (AIB)'.tr: 'AIB',
'Arab Investment Bank (AIBK)'.tr: 'ARIB',
'Central Bank of Egypt (CBE)'.tr: 'CBE',
'Barclays Egypt (BBE)'.tr: 'BBE',
// Add other bank full names and short names here as needed
};
@override

View File

@@ -398,7 +398,7 @@ class WalletCaptain extends StatelessWidget {
child: Row(
children: [
SizedBox(
width: Get.width * .95,
width: Get.width * .9,
// height: Get.height * .1,
// decoration: AppStyle.boxDecoration,
child: Stack(
@@ -417,7 +417,8 @@ class WalletCaptain extends StatelessWidget {
color: AppColor.blueColor,
borderRadius:
BorderRadius.circular(12),
backgroundColor: AppColor.accentColor,
backgroundColor: AppColor.accentColor
.withOpacity(.5),
value: double.parse(
captainWalletController
.walletDate['message'][0]
@@ -457,7 +458,7 @@ class WalletCaptain extends StatelessWidget {
child: Row(
children: [
SizedBox(
width: Get.width * .95,
width: Get.width * .9,
// height: Get.height * .1,
// decoration: AppStyle.boxDecoration,
child: Stack(
@@ -476,7 +477,8 @@ class WalletCaptain extends StatelessWidget {
color: AppColor.blueColor,
borderRadius:
BorderRadius.circular(12),
backgroundColor: AppColor.accentColor,
backgroundColor: AppColor.accentColor
.withOpacity(.5),
value: double.parse(
captainWalletController
.walletDate['message'][0]

View File

@@ -43,7 +43,7 @@ class WeeklyPaymentPage extends StatelessWidget {
),
),
Text(
' Total weekly points is '.tr,
' Total weekly is '.tr,
style: AppStyle.title,
),
],