6/22/1
This commit is contained in:
@@ -645,7 +645,6 @@ Output the extracted information in the following JSON formate and make date for
|
||||
// sql
|
||||
// .getAllData(
|
||||
// TableName.faceDetectTimes)
|
||||
// .then((value) => print(
|
||||
// value[0]['faceDetectTimes']));
|
||||
// },
|
||||
// ),
|
||||
@@ -865,8 +864,7 @@ Output the extracted information in the following JSON formate and make date for
|
||||
kolor: AppColor.yellowColor,
|
||||
onPressed: () {
|
||||
sql.deleteAllData(TableName.faceDetectTimes);
|
||||
sql.getAllData(TableName.faceDetectTimes).then(
|
||||
(value) => print(value[0]['faceDetectTimes']));
|
||||
sql.getAllData(TableName.faceDetectTimes);
|
||||
},
|
||||
)
|
||||
],
|
||||
|
||||
@@ -34,7 +34,6 @@ class CarLicensePage extends StatelessWidget {
|
||||
//3vQRyaYYSWpmv69A58ZOkxmeK6M1mgwEDlXrXlBl
|
||||
//0pALdqDDYHvzp73Q59SIgbzjG7Z2zkhJXr
|
||||
// String? visionApi = AK.serverPHP;
|
||||
// print(AK.visionApi);
|
||||
await carRegistrationRecognizerController.scanText();
|
||||
},
|
||||
)),
|
||||
|
||||
@@ -90,7 +90,6 @@ class EgyptCardAI extends StatelessWidget {
|
||||
right: 30,
|
||||
left: 30,
|
||||
child: GetBuilder<AI>(builder: (controller) {
|
||||
print(controller.approved);
|
||||
return controller.approved == false
|
||||
? Container(
|
||||
decoration: AppStyle.boxDecoration1,
|
||||
@@ -641,8 +640,6 @@ class EgyptCardAI extends StatelessWidget {
|
||||
return GetBuilder<AI>(
|
||||
builder: (ai) {
|
||||
if (ai.responseIdCardDriverEgyptBack.isNotEmpty) {
|
||||
// print(ai.responseIdCardDriverEgyptBack);
|
||||
|
||||
// Get the tax expiry date from the response
|
||||
final taxExpiryDate = ai.responseIdCardDriverEgyptBack['tax_expiry'];
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ class GeminiEgypt extends GetxController {
|
||||
},
|
||||
]
|
||||
});
|
||||
// print(requestBody);
|
||||
|
||||
final response = await http.post(
|
||||
Uri.parse(
|
||||
@@ -59,12 +58,8 @@ class GeminiEgypt extends GetxController {
|
||||
if (response.statusCode == 200) {
|
||||
var responseData = jsonDecode(response.body);
|
||||
// Process the responseData as needed
|
||||
// print(responseData);
|
||||
|
||||
var result = responseData['candidates'][0]['content']['parts'][0]['text'];
|
||||
// print(jsonEncode(result));
|
||||
// print((result));
|
||||
// print(result['dob']);
|
||||
RegExp regex = RegExp(r"```json([^`]*)```");
|
||||
String? jsonString =
|
||||
regex.firstMatch(responseData.toString())?.group(1)?.trim();
|
||||
@@ -72,22 +67,14 @@ class GeminiEgypt extends GetxController {
|
||||
if (jsonString != null) {
|
||||
// Convert the JSON object to a String
|
||||
jsonString = jsonEncode(json.decode(jsonString));
|
||||
// print(jsonString);
|
||||
responseIdCardDriverEgypt1 = jsonString;
|
||||
|
||||
// print(jsonDecode(responseIdCardDriverEgypt1!));
|
||||
responseIdCardDriverEgypt = jsonDecode(responseIdCardDriverEgypt1!);
|
||||
print(responseIdCardDriverEgypt);
|
||||
update();
|
||||
return responseIdCardDriverEgypt;
|
||||
} else {
|
||||
print("JSON string not found");
|
||||
}
|
||||
} else {}
|
||||
|
||||
// Rest of your code...
|
||||
} else {
|
||||
print('Request failed with status: ${response.statusCode}');
|
||||
print('Request failed with status: ${response.body}');
|
||||
}
|
||||
} else {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,10 +218,6 @@ class LoginCaptin extends StatelessWidget {
|
||||
User? user = await authController
|
||||
.signInWithApple();
|
||||
if (user != null) {
|
||||
print(
|
||||
"Successfully signed in: ${user.email}");
|
||||
print(
|
||||
"Successfully signed in: ${user.uid}");
|
||||
box.write(BoxName.driverID, user.uid);
|
||||
box.write(
|
||||
BoxName.emailDriver, user.email);
|
||||
@@ -233,9 +229,7 @@ class LoginCaptin extends StatelessWidget {
|
||||
.toString(),
|
||||
);
|
||||
// Navigate to another screen or perform other actions
|
||||
} else {
|
||||
print("Sign-in failed");
|
||||
}
|
||||
} else {}
|
||||
},
|
||||
kolor: AppColor.primaryColor,
|
||||
)
|
||||
@@ -243,9 +237,6 @@ class LoginCaptin extends StatelessWidget {
|
||||
// MyElevatedButton(
|
||||
// title: 'Sign In by Google'.tr,
|
||||
// onPressed: () async {
|
||||
// print(box.read(BoxName.emailDriver));
|
||||
// print(box.read(BoxName.phoneDriver));
|
||||
// print(box.read(BoxName.phoneVerified));
|
||||
// },
|
||||
// kolor: AppColor.redColor,
|
||||
// ),
|
||||
@@ -277,16 +268,13 @@ class LoginCaptin extends StatelessWidget {
|
||||
// String apiKey = AK.payMobApikey;
|
||||
// String convertedStringN = credentials.c(
|
||||
// credentials.c(credentials.c(apiKey, cs), cC), cn);
|
||||
// print('Converted v: $convertedStringN');
|
||||
//
|
||||
// String retrievedStringS = credentials.r(
|
||||
// credentials.r(
|
||||
// credentials.r(convertedStringN, cn), cC),
|
||||
// cs);
|
||||
// print('Retrieved String: $retrievedStringS');
|
||||
// //
|
||||
// if (retrievedStringS == apiKey) {
|
||||
// print('same');
|
||||
// }
|
||||
// },
|
||||
// icon: const Icon(
|
||||
|
||||
@@ -39,7 +39,6 @@ class HistoryDetailsPage extends StatelessWidget {
|
||||
onPressed: () {
|
||||
String mapUrl =
|
||||
'https://www.google.com/maps/dir/${res['start_location']}/${res['end_location']}/';
|
||||
print(mapUrl);
|
||||
showInBrowser(mapUrl);
|
||||
},
|
||||
child: Column(
|
||||
|
||||
@@ -50,7 +50,6 @@ class _DriverCallPageState extends State<DriverCallPage> {
|
||||
.getAgoraToken(channelName: channelName, uid: uid.toString());
|
||||
setState(() {
|
||||
token = res;
|
||||
print('token is $token');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -63,8 +62,6 @@ class _DriverCallPageState extends State<DriverCallPage> {
|
||||
uid = box.read(BoxName.phoneDriver) != null
|
||||
? int.parse(box.read(BoxName.phoneDriver))
|
||||
: int.parse(box.read(BoxName.phone));
|
||||
print('remoteid is $_remoteUid');
|
||||
print('uid is $uid');
|
||||
// Set up an instance of Agora engine
|
||||
initAgora();
|
||||
}
|
||||
@@ -76,8 +73,6 @@ class _DriverCallPageState extends State<DriverCallPage> {
|
||||
//create an instance of the Agora engine
|
||||
agoraEngine = createAgoraRtcEngine();
|
||||
await agoraEngine.initialize(RtcEngineContext(appId: AK.agoraAppId));
|
||||
print('eeeeeeeeeeeeeeeeeeee');
|
||||
print(agoraEngine);
|
||||
// Register the event handler
|
||||
agoraEngine.registerEventHandler(
|
||||
RtcEngineEventHandler(
|
||||
|
||||
@@ -125,7 +125,6 @@ class HelpCaptain extends StatelessWidget {
|
||||
// color: AppColor.greenColor,
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
print(list['id']);
|
||||
helpController.getindex(
|
||||
list['id'], list['helpQuestion']);
|
||||
helpController.getHelpRepley(
|
||||
|
||||
@@ -31,15 +31,12 @@ GetBuilder<HomeCaptainController> leftMainMenuCaptainIcons() {
|
||||
// String apiKey = 'seferface:malDev@2101';
|
||||
// String convertedStringN = credentials.c(
|
||||
// credentials.c(credentials.c(apiKey, cs), cC), cn);
|
||||
// print('Converted v: $convertedStringN');
|
||||
//
|
||||
// String retrievedStringS = credentials.r(
|
||||
// credentials.r(credentials.r(convertedStringN, cn), cC),
|
||||
// cs);
|
||||
// print('Retrieved String: $retrievedStringS');
|
||||
// //
|
||||
// if (retrievedStringS == apiKey) {
|
||||
// print('same');
|
||||
// }
|
||||
// },
|
||||
// icon: const Icon(
|
||||
|
||||
@@ -12,8 +12,6 @@ class ZonesController extends GetxController {
|
||||
final double width = (southEast.longitude - southwest.longitude) * 100;
|
||||
final double height = (northeast.latitude - southEast.latitude) * 100;
|
||||
final double totalArea = width * height;
|
||||
print(width);
|
||||
print(height);
|
||||
|
||||
// final int numZones = (totalArea / desiredZoneArea).ceil();
|
||||
|
||||
@@ -23,8 +21,6 @@ class ZonesController extends GetxController {
|
||||
((northeast.latitude - southwest.latitude) / zoneHeight).ceil();
|
||||
final numCols =
|
||||
((southEast.longitude - southwest.longitude) / zoneWidth).ceil();
|
||||
print('zoneWidth = $zoneWidth');
|
||||
print('zoneHeight = $zoneHeight');
|
||||
List<String> zoneNames = [];
|
||||
List<LatLng> zoneCoordinates = [];
|
||||
|
||||
@@ -67,7 +63,5 @@ class ZonesController extends GetxController {
|
||||
Map<String, List<LatLng>> zoneMap =
|
||||
generateZoneMap(southwest, southEast, northeast);
|
||||
String jsonMap = json.encode(zoneMap);
|
||||
|
||||
print(jsonMap);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,6 @@ class OrderRequestPage extends StatelessWidget {
|
||||
onPressed: () {
|
||||
String mapUrl =
|
||||
'https://www.google.com/maps/dir/${myList[0]}/${myList[1]}/';
|
||||
print(mapUrl);
|
||||
showInBrowser(mapUrl);
|
||||
},
|
||||
icon: const Icon(Icons.map),
|
||||
@@ -319,7 +318,6 @@ class OrderRequestPage extends StatelessWidget {
|
||||
box.read(BoxName.nameDriver).toString(),
|
||||
box.read(BoxName.tokenDriver).toString(),
|
||||
];
|
||||
// print(bodyToPassenger);
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
'Apply Ride', 'your ride is applied'.tr,
|
||||
@@ -365,8 +363,7 @@ class OrderRequestPage extends StatelessWidget {
|
||||
'startNameLocation': myList[29].toString(),
|
||||
'endNameLocation': myList[30].toString(),
|
||||
});
|
||||
print(
|
||||
'passengerID =${box.read(BoxName.rideArguments)}');
|
||||
'passengerID =${box.read(BoxName.rideArguments)}';
|
||||
Get.to(() => PassengerLocationMapPage(),
|
||||
arguments: box.read(BoxName.rideArguments));
|
||||
},
|
||||
|
||||
@@ -153,7 +153,6 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
onPressed: () {
|
||||
String mapUrl =
|
||||
'https://www.google.com/maps/dir/${myList[0]}/${myList[1]}/';
|
||||
print(mapUrl);
|
||||
showInBrowser(mapUrl);
|
||||
},
|
||||
icon: const Icon(Icons.map),
|
||||
@@ -318,7 +317,6 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
});
|
||||
// .then((value) {
|
||||
// var json = jsonDecode(res);
|
||||
print('res $res');
|
||||
if (res == "failure") {
|
||||
Get.defaultDialog(
|
||||
title:
|
||||
@@ -350,7 +348,6 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
'order_id': body.toString(),
|
||||
'status': 'Apply'
|
||||
});
|
||||
// print(bodyToPassenger);
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
'Apply Ride', 'your ride is applied'.tr,
|
||||
@@ -361,38 +358,8 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
);
|
||||
Get.back();
|
||||
|
||||
// print(
|
||||
// 'Arguments passed to PassengerLocationMapPage:');
|
||||
// print('Passenger Location: ${myList[0]}');
|
||||
// print('Passenger Destination: ${myList[1]}');
|
||||
// print('Duration: ${myList[4]}');
|
||||
// print('Total Cost: ${myList[26]}');
|
||||
// print('Distance: ${myList[5]}');
|
||||
// print('Name: ${myList[8]}');
|
||||
// print('Phone: ${myList[10]}');
|
||||
// print('Email: ${myList[28]}');
|
||||
// print('Wallet Checked: ${myList[13]}');
|
||||
// print('Token Passenger: ${myList[9]}');
|
||||
// print('Direction: ${myList[29]}');
|
||||
// print('Duration To Passenger: ${myList[15]}');
|
||||
// print('Ride ID: ${myList[16]}');
|
||||
// print('Passenger ID: ${myList[7]}');
|
||||
// print('Driver ID: ${myList[18]}');
|
||||
// print('Duration Of Ride Value: ${myList[19]}');
|
||||
// print('Payment Amount: ${myList[2]}');
|
||||
// print(
|
||||
// 'Payment Method: ${myList[13] == 'true' ? 'visa' : 'cash'}');
|
||||
// print('Is Have Steps: ${myList[20]}');
|
||||
// print('Step 0: ${myList[21]}');
|
||||
// print('Step 1: ${myList[22]}');
|
||||
// print('Step 2: ${myList[23]}');
|
||||
// print('Step 3: ${myList[24]}');
|
||||
// print('Step 4: ${myList[25]}');
|
||||
// print('Passenger Wallet Burc: ${myList[26]}');
|
||||
// print('Time Of Order: ${myList[30]}');
|
||||
// print('Total Passenger: ${myList[2]}');
|
||||
// print('Car Type: ${myList[31]}');
|
||||
// print('Kazan: ${myList[32]}');
|
||||
box.write(BoxName.rideArguments, {
|
||||
'passengerLocation': myList[0].toString(),
|
||||
'passengerDestination': myList[1].toString(),
|
||||
|
||||
@@ -103,10 +103,8 @@ class CardSeferWalletDriver extends StatelessWidget {
|
||||
.totalAmountVisa) -
|
||||
5)
|
||||
.toStringAsFixed(0);
|
||||
// print(Get.find<PaymobPayout>()
|
||||
// .dropdownValue
|
||||
// .toString());
|
||||
// print(captainWalletController.phoneWallet.text
|
||||
// .toString());
|
||||
await Get.put(PaymobPayout()).payToWalletDriverAll(
|
||||
amountAfter5LE,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:SEFER/controller/functions/tts.dart';
|
||||
import 'package:SEFER/controller/home/captin/map_driver_controller.dart';
|
||||
import 'package:SEFER/controller/home/payment/paymob_payout.dart';
|
||||
import 'package:SEFER/views/home/my_wallet/payment_history_driver_page.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -14,7 +13,6 @@ import 'package:SEFER/main.dart';
|
||||
import 'package:SEFER/views/widgets/elevated_btn.dart';
|
||||
import 'package:SEFER/views/widgets/my_textField.dart';
|
||||
import 'package:SEFER/views/widgets/mycircular.dart';
|
||||
import 'package:path/path.dart';
|
||||
|
||||
import '../../../controller/payment/driver_payment_controller.dart';
|
||||
import '../../widgets/my_scafold.dart';
|
||||
|
||||
@@ -70,9 +70,7 @@ class PromosPassengerPage extends StatelessWidget {
|
||||
textStyle: AppStyle.title),
|
||||
],
|
||||
isRepeatingAnimation: true,
|
||||
onTap: () {
|
||||
print("Tap Event");
|
||||
},
|
||||
onTap: () {},
|
||||
),
|
||||
Text(
|
||||
rides['description'],
|
||||
|
||||
@@ -106,7 +106,6 @@ class AvailableRidesPage extends StatelessWidget {
|
||||
});
|
||||
// .then((value) {
|
||||
// var json = jsonDecode(res);
|
||||
print('res $res');
|
||||
if (res == "failure") {
|
||||
Get.defaultDialog(
|
||||
title:
|
||||
@@ -156,7 +155,6 @@ class AvailableRidesPage extends StatelessWidget {
|
||||
'status': 'Applied'
|
||||
});
|
||||
|
||||
// print(bodyToPassenger);
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
'Apply Ride',
|
||||
|
||||
Reference in New Issue
Block a user