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

@@ -55,8 +55,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 33 targetSdkVersion 33
versionCode 45 versionCode 46
versionName '1.5.45' versionName '1.5.46'
// manifestPlaceholders = [mapsApiKey: 'android/app/src/main/AndroidManifest.xml'] // manifestPlaceholders = [mapsApiKey: 'android/app/src/main/AndroidManifest.xml']
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 713 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -21,7 +21,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>43</string> <string>44</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>4.0.43</string> <string>4.0.44</string>
<key>FirebaseAppDelegateProxyEnabled</key> <key>FirebaseAppDelegateProxyEnabled</key>
<string>NO</string> <string>NO</string>
<key>GMSApiKey</key> <key>GMSApiKey</key>

View File

@@ -110,12 +110,13 @@ class FirebaseMessagesController extends GetxController {
'body': message.notification!.body 'body': message.notification!.body
}); });
} else if (message.notification!.title == 'Cancel Trip'.tr) { } else if (message.notification!.title == 'Cancel Trip'.tr) {
NotificationController().showNotification( // NotificationController().showNotification(
'Cancel Trip'.tr, 'Passenger Cancel Trip'.tr, 'cancel'); // 'Cancel Trip'.tr, 'Passenger Cancel Trip'.tr, 'cancel');
cancelTripDialog(); cancelTripDialog();
} else if (message.notification!.title! == 'token change'.tr) { } else if (message.notification!.title! == 'token change'.tr) {
NotificationController() // NotificationController()
.showNotification('token change'.tr, 'token change', 'cancel'); // .showNotification('token change'.tr, 'token change', 'cancel');
// GoogleSignInHelper.signOut();
GoogleSignInHelper.signOut(); GoogleSignInHelper.signOut();
} else if (message.notification!.title! == 'message From passenger'.tr) { } else if (message.notification!.title! == 'message From passenger'.tr) {
NotificationController() NotificationController()

View File

@@ -50,7 +50,7 @@ class LocationController extends GetxController {
totalPoints = Get.find<CaptainWalletController>().totalPoints; totalPoints = Get.find<CaptainWalletController>().totalPoints;
isActive = Get.find<HomeCaptainController>().isActive; isActive = Get.find<HomeCaptainController>().isActive;
if (isActive) { if (isActive) {
if (double.parse(totalPoints) > -300) { if (double.parse(totalPoints) > -3000) {
await getLocation(); await getLocation();
// if (box.read(BoxName.driverID) != null) { // if (box.read(BoxName.driverID) != null) {

View File

@@ -75,7 +75,7 @@ class HomeCaptainController extends GetxController {
isActive = !isActive; isActive = !isActive;
if (isActive) { if (isActive) {
if (double.parse(totalPoints) > -300) { if (double.parse(totalPoints) > -3000) {
locationController.startLocationUpdates(); locationController.startLocationUpdates();
// locationBackController.startBackLocation(); // locationBackController.startBackLocation();
activeStartTime = DateTime.now(); activeStartTime = DateTime.now();
@@ -123,7 +123,7 @@ class HomeCaptainController extends GetxController {
await sql.getCustomQuery(customQuery); await sql.getCustomQuery(customQuery);
countRefuse = results[0]['count'].toString(); countRefuse = results[0]['count'].toString();
update(); update();
if (int.parse(countRefuse) > 3 || double.parse(totalPoints) <= -300) { if (int.parse(countRefuse) > 3 || double.parse(totalPoints) <= -3000) {
locationController.stopLocationUpdates(); locationController.stopLocationUpdates();
activeStartTime = null; activeStartTime = null;
activeTimer?.cancel(); activeTimer?.cancel();

View File

@@ -525,8 +525,7 @@ class MapDriverController extends GetxController {
} }
double pointsSubtraction = 0; double pointsSubtraction = 0;
pointsSubtraction = pointsSubtraction = double.parse(paymentAmount) * (-1);
double.parse(paymentAmount) * (-1) * double.parse(kazan);
var paymentToken2 = var paymentToken2 =
await generateTokenDriver((pointsSubtraction).toStringAsFixed(0)); await generateTokenDriver((pointsSubtraction).toStringAsFixed(0));
var res = await CRUD().post(link: AppLink.addDriversWalletPoints, payload: { var res = await CRUD().post(link: AppLink.addDriversWalletPoints, payload: {
@@ -554,7 +553,7 @@ class MapDriverController extends GetxController {
Get.to(() => RatePassenger(), arguments: { Get.to(() => RatePassenger(), arguments: {
'passengerId': passengerId, 'passengerId': passengerId,
'rideId': rideId, 'rideId': rideId,
'price': price.toString(), 'price': paymentAmount.toString(), //price
'walletChecked': walletChecked 'walletChecked': walletChecked
}); });
// Get.back(); // Get.back();

View File

@@ -58,6 +58,7 @@ class OrderRequestController extends GetxController {
List<Map<String, dynamic>> results = List<Map<String, dynamic>> results =
await sql.getCustomQuery(customQuery); await sql.getCustomQuery(customQuery);
countRefuse = results[0]['count'].toString(); countRefuse = results[0]['count'].toString();
print(countRefuse);
update(); update();
if (int.parse(countRefuse) > 3) { if (int.parse(countRefuse) > 3) {
box.write(BoxName.statusDriverLocation, 'on'); box.write(BoxName.statusDriverLocation, 'on');

View File

@@ -4,6 +4,61 @@ class MyTranslation extends Translations {
@override @override
Map<String, Map<String, String>> get keys => { Map<String, Map<String, String>> get keys => {
"ar": { "ar": {
"You must be recharge your Account":
"رصيد حسابك غير كافٍ. يرجى إعادة الشحن للمتابعة",
"Commercial International Bank (CIB)": "البنك التجاري الدولي (CIB)",
"National Bank of Egypt": "البنك الأهلي المصري",
"Qatar National Bank (QNB Alahli)": "بنك قطر الوطني (QNB الأهلي)",
"Banque Misr": "بنك مصر",
"AlexBank": "بنك الإسكندرية",
"Banque du Caire (BDC)": "بنك القاهرة",
"HSBC Bank Egypt": "بنك HSBC مصر",
"Faisal Islamic Bank of Egypt (FAIB)": "بنك فيصل الإسلامي المصري",
"Arab African International Bank (AAIB)":
"البنك العربي الأفريقي الدولي",
"Export Development Bank of Egypt (EDBE)":
"بنك تنمية الصادرات المصري",
"Industrial Development Bank of Egypt (IDB)":
"بنك التنمية الصناعية المصري",
"Suez Canal Bank (SCB)": "بنك قناة السويس",
"Bank Audi Egypt": "بنك عوده مصر",
"Union National Bank Egypt": "بنك الاتحاد الوطني مصر",
"Al Baraka Bank Egypt": "بنك البركة مصر",
"Blom Bank (BBE)": "بنك بلوم مصر",
"Crédit Agricole Egypt (CAE)": "بنك كريدي أجريكول مصر",
"Egyptian Gulf Bank (EG Bank)": "بنك الخليج المصري",
"Housing and Development Bank (HDB)": "بنك التعمير والإسكان",
"The United Bank of Egypt (UB)": "البنك المتحد مصر",
"Arab Bank Plc. (ARAB)": "البنك العربي ش.م.ع.",
"Emirates NBD (ENBD)": "بنك الإمارات دبي الوطني",
"Al Ahli Bank of Kuwait - Egypt (ABK-Egypt)":
"البنك الأهلي الكويتي - مصر",
"National Bank of Kuwait - Egypt (NBK-Egypt)":
"بنك الكويت الوطني - مصر",
"Arab Banking Corporation (Bank ABC)":
"مؤسسة التمويل العربي (بنك ABC)",
"First Abu Dhabi Bank (FAB)": "بنك أبوظبي الأول",
"Abu Dhabi Islamic Bank (ADIB)": "بنك أبوظبي الإسلامي",
"Egyptian Arab Land Bank (EALB)": "بنك التعمير العربي المصري",
"Abu Dhabi Commercial Bank - Egypt (ADCB)":
"بنك أبوظبي التجاري - مصر",
"Bank of Alexandria (BOA)": "بنك الإسكندرية",
"Société Arabe Internationale de Banque (SAIB)":
"البنك العربي الدولي للتجارة (SAIB)",
"Attijariwafa Bank Egypt (ABRK)": "بنك التجاري وفا مصر",
"Principal Bank for Development and Agricultural Credit (POST)":
"البنك الرئيسي للتنمية والائتمان الزراعي",
"Nasser Social Bank (NSB)": "بنك ناصر الاجتماعي",
"Mashreq Bank (MASH)": "بنك المشرق",
"Arab International Bank (AIB)": "البنك العربي الدولي",
"General Authority for Suez Canal Economic Zone (GASC)":
"الهيئة العامة للمنطقة الاقتصادية لقناة السويس",
"Arab Investment Bank (AIBK)": "بنك الاستثمار العربي (AIBK)",
"Piraeus Bank (PDAC)": "بنك بيريوس",
"National Bank of Greece (ceased operations in Egypt)":
"البنك الوطني اليوناني (توقف عن العمل في مصر)",
"Central Bank of Egypt (CBE)": "البنك المركزي المصري",
"Barclays Egypt (BBE)": "بنك باركليز مصر",
"Morning Promo": "عرض الصباح", "Morning Promo": "عرض الصباح",
"this is count of your all trips in the morning promo today from 7:00am-10:00am": "this is count of your all trips in the morning promo today from 7:00am-10:00am":
"هذا عدد جميع رحلاتك في عرض الصباح اليوم من الساعة 7:00 صباحًا حتى 10:00 صباحًا", "هذا عدد جميع رحلاتك في عرض الصباح اليوم من الساعة 7:00 صباحًا حتى 10:00 صباحًا",
@@ -60,7 +115,7 @@ class MyTranslation extends Translations {
"Do you want to collect your earnings?": "Do you want to collect your earnings?":
"هل تريد استلام أموالك؟", // Corrected grammar "هل تريد استلام أموالك؟", // Corrected grammar
"Total wallet is ": "إجمالي المحفظة هو ", "Total wallet is ": "إجمالي المحفظة هو ",
"Remainder": "المتبقي", "Remainder": "الباقي",
"Call Page": "صفحة المكالمة", "Call Page": "صفحة المكالمة",
"Call End": "إنهاء المكالمة", "Call End": "إنهاء المكالمة",
"Call Left": "مكالمات متبقية", "Call Left": "مكالمات متبقية",
@@ -635,7 +690,7 @@ class MyTranslation extends Translations {
"Best choice for comfort car and flexible route and stops point": "Best choice for comfort car and flexible route and stops point":
"أفضل خيار للسيارة المريحة والطريق المرن ونقطة التوقف", "أفضل خيار للسيارة المريحة والطريق المرن ونقطة التوقف",
"Insert": "إدراج", "Insert": "إدراج",
' Total weekly points is ': " مجموع النقاط الأسبوعية هو ", ' Total weekly is ': " مجموع التحصيل الأسبوعي ",
'you can buy ': '‏يمكنك شراء', 'you can buy ': '‏يمكنك شراء',
"Which method you will pay": '‏أي طريقة الدفع تفضل', "Which method you will pay": '‏أي طريقة الدفع تفضل',
"This is for delivery or a motorcycle.": "This is for delivery or a motorcycle.":

View File

@@ -72,7 +72,10 @@ class RateController extends GetxController {
}); });
} else { } else {
double pointsSubtraction = 0; double pointsSubtraction = 0;
pointsSubtraction = remainingFee * (-1); // for egypt /100 pointsSubtraction = remainingFee *
(-1) *
double.parse(
Get.find<MapDriverController>().kazan); // for egypt /100
var paymentToken4 = await Get.find<MapDriverController>() var paymentToken4 = await Get.find<MapDriverController>()
.generateTokenDriver((pointsSubtraction).toStringAsFixed(0)); .generateTokenDriver((pointsSubtraction).toStringAsFixed(0));
var res = await CRUD() var res = await CRUD()

View File

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

View File

@@ -3,12 +3,48 @@ import 'package:get/get.dart';
class BankController extends GetxController { class BankController extends GetxController {
String selectedBank = ''; 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 = { Map<String, String> bankNames = {
'CIB Bank'.tr: 'CIB', 'Commercial International Bank (CIB)'.tr: 'CIB',
'National Bank of Egypt'.tr: 'NBE', 'National Bank of Egypt'.tr: 'NBE',
'QNB Al Ahli'.tr: 'QNB', 'Qatar National Bank (QNB Alahli)'.tr: 'QNB',
'Bank Misr'.tr: 'BM', 'Banque Misr'.tr: 'BM',
// Add other bank full names and short names here '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 @override

View File

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

View File

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