25-7-1/1
This commit is contained in:
@@ -53,8 +53,8 @@ android {
|
||||
applicationId = "com.mobileapp.store.ride"
|
||||
minSdk = 23
|
||||
targetSdk = flutter.targetSdkVersion // Use flutter.targetSdkVersion
|
||||
versionCode = 132
|
||||
versionName = '2.0.132'
|
||||
versionCode = 133
|
||||
versionName = '2.0.133'
|
||||
multiDexEnabled = true
|
||||
|
||||
ndk {
|
||||
|
||||
@@ -41,11 +41,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>105</string>
|
||||
<string>106</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>5.0.995</string>
|
||||
<string>5.0.996</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string></string>
|
||||
<key>FirebaseAppDelegateProxyEnabled</key>
|
||||
|
||||
@@ -184,9 +184,9 @@
|
||||
if([SecurityChecks checkProcessName]){
|
||||
return YES;
|
||||
}
|
||||
if ([SecurityChecks isDebuggerAttached]) {
|
||||
return YES;
|
||||
}
|
||||
// if ([SecurityChecks isDebuggerAttached]) {
|
||||
// return YES;
|
||||
// }
|
||||
// if ([SecurityChecks isFridaDetected]) {
|
||||
// return YES;
|
||||
// }
|
||||
|
||||
@@ -121,13 +121,13 @@ class FirebaseMessagesController extends GetxController {
|
||||
});
|
||||
}
|
||||
|
||||
void fireBaseTitles(RemoteMessage message) {
|
||||
Future<void> fireBaseTitles(RemoteMessage message) async {
|
||||
if (message.notification!.title! == 'Order'.tr) {
|
||||
if (Platform.isAndroid) {
|
||||
notificationController.showNotification(
|
||||
'Order', message.notification!.body!, 'Order');
|
||||
}
|
||||
} else if (message.notification!.title! == 'Accepted Ride'.tr) {
|
||||
} else if (message.notification!.title! == 'Accepted Ride') {
|
||||
if (Platform.isAndroid) {
|
||||
notificationController.showNotification(
|
||||
'Accepted Ride'.tr, 'Driver Accepted the Ride for You'.tr, 'ding');
|
||||
@@ -136,13 +136,16 @@ class FirebaseMessagesController extends GetxController {
|
||||
|
||||
var myList = jsonDecode(passengerList) as List<dynamic>;
|
||||
Log.print('myList: ${myList}');
|
||||
driverID = myList[0].toString();
|
||||
// Get.find<MapPassengerController>().driverToken = myList[2].toString();
|
||||
// Log.print('driverToken: ${myList[2]}');
|
||||
Get.find<MapPassengerController>().statusRide = 'Apply';
|
||||
Get.find<MapPassengerController>().isSearchingWindow = false;
|
||||
Get.find<MapPassengerController>().update();
|
||||
Get.find<MapPassengerController>().rideAppliedFromDriver(true);
|
||||
final controller = Get.find<MapPassengerController>();
|
||||
controller.driverId = myList[0].toString();
|
||||
// assume rideId lives at index 2 in your list:
|
||||
controller.rideId = myList[3].toString();
|
||||
|
||||
controller
|
||||
..statusRide = 'Apply'
|
||||
..isSearchingWindow = false
|
||||
..update();
|
||||
await controller.rideAppliedFromDriver(true);
|
||||
|
||||
// driverAppliedTripSnakBar();
|
||||
} else if (message.notification!.title! == 'Promo'.tr) {
|
||||
@@ -557,7 +560,9 @@ class FirebaseMessagesController extends GetxController {
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
late String serviceAccountKeyJson;
|
||||
|
||||
@override
|
||||
Future<void> onInit() async {
|
||||
super.onInit();
|
||||
@@ -565,7 +570,8 @@ class FirebaseMessagesController extends GetxController {
|
||||
var encryptedKey = await storage.read(key: 'FCM_PRIVATE_KEY');
|
||||
// Log.print('encryptedKey: ${encryptedKey}');
|
||||
if (encryptedKey != null) {
|
||||
serviceAccountKeyJson = (encryptedKey);
|
||||
serviceAccountKeyJson =
|
||||
EncryptionHelper.instance.decryptData(encryptedKey);
|
||||
// Log.print('serviceAccountKeyJson: ${serviceAccountKeyJson}');
|
||||
} else {
|
||||
print('🔴 Error: FCM_PRIVATE_KEY not found in Secure Storage');
|
||||
@@ -647,11 +653,12 @@ class FirebaseMessagesController extends GetxController {
|
||||
|
||||
// Initialize AccessTokenManager
|
||||
final accessTokenManager = AccessTokenManager(serviceAccountKeyJson);
|
||||
// Log.print('accessTokenManager: ${accessTokenManager}');
|
||||
// Log.print(
|
||||
// 'accessTokenManager: ${accessTokenManager.serviceAccountJsonKey}');
|
||||
|
||||
// Obtain an OAuth 2.0 access token
|
||||
final accessToken = await accessTokenManager.getAccessToken();
|
||||
Log.print('accessToken: ${accessToken}');
|
||||
// Log.print('accessToken: ${accessToken}');
|
||||
|
||||
// Send the notification
|
||||
final response = await http.post(
|
||||
|
||||
@@ -35,6 +35,7 @@ import '../../models/model/painter_copoun.dart';
|
||||
import '../../print.dart';
|
||||
import '../../views/home/map_widget.dart/cancel_raide_page.dart';
|
||||
import '../../views/home/map_widget.dart/car_details_widget_to_go.dart';
|
||||
import '../../views/home/map_widget.dart/searching_captain_window.dart';
|
||||
import '../../views/home/map_widget.dart/select_driver_mishwari.dart';
|
||||
import '../../views/widgets/elevated_btn.dart';
|
||||
import '../../views/widgets/error_snakbar.dart';
|
||||
@@ -79,7 +80,10 @@ class MapPassengerController extends GetxController {
|
||||
List wayPoint2 = [];
|
||||
List wayPoint3 = [];
|
||||
List wayPoint4 = [];
|
||||
|
||||
final firebaseMessagesController =
|
||||
Get.isRegistered<FirebaseMessagesController>()
|
||||
? Get.find<FirebaseMessagesController>()
|
||||
: Get.put(FirebaseMessagesController());
|
||||
List<List<dynamic>> placeListResponseAll = [];
|
||||
|
||||
List<Widget> placeListResponse = [
|
||||
@@ -367,6 +371,8 @@ class MapPassengerController extends GetxController {
|
||||
totalPassenger = double.parse(increasFeeFromPassenger.text);
|
||||
Get.back();
|
||||
if (rideId != 'yet') {
|
||||
Log.print('rideId from increase: ${rideId}');
|
||||
notifyAvailableDriversAgain();
|
||||
await CRUD().post(link: AppLink.updateDriverOrder, payload: {
|
||||
"order_id": rideId.toString(), // Convert to String
|
||||
"status": 'waiting'
|
||||
@@ -943,7 +949,7 @@ class MapPassengerController extends GetxController {
|
||||
box.write(BoxName.passengerWalletTotal, '0');
|
||||
update();
|
||||
if (box.read(BoxName.parentTripSelected) == true) {
|
||||
Get.find<FirebaseMessagesController>().sendNotificationToPassengerToken(
|
||||
firebaseMessagesController.sendNotificationToPassengerToken(
|
||||
"Finish Monitor".tr,
|
||||
"Finish Monitor".tr,
|
||||
box.read(BoxName.tokenParent),
|
||||
@@ -1531,7 +1537,7 @@ class MapPassengerController extends GetxController {
|
||||
// passengerRate.toStringAsFixed(2),
|
||||
// ];
|
||||
// Log.print('body: ${body}');
|
||||
// Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
// firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
// 'OrderSpeed',
|
||||
// rideId,
|
||||
// driverData['token'].toString(),
|
||||
@@ -1674,7 +1680,7 @@ class MapPassengerController extends GetxController {
|
||||
// ];
|
||||
// // Log.print('body: ${body}');
|
||||
|
||||
// Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
// firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
// 'OrderSpeed',
|
||||
// rideId.toString(),
|
||||
// dataCarsLocationByPassenger['message'][i]['token'].toString(),
|
||||
@@ -1957,8 +1963,8 @@ class MapPassengerController extends GetxController {
|
||||
Future.delayed(const Duration(microseconds: 10));
|
||||
final body = constructNotificationBody(driverData);
|
||||
Log.print('body:ww ${body}');
|
||||
Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
'Order'.tr,
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'Order', // without tr since background not valid
|
||||
endNameAddress,
|
||||
(driverData['token'].toString()),
|
||||
body,
|
||||
@@ -1970,6 +1976,53 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> notifyAvailableDriversAgain() async {
|
||||
Log.print('[DEBUG] Starting notifyAvailableDriversAgain()');
|
||||
await getCarsLocationByPassengerAndReloadMarker(
|
||||
box.read(BoxName.carType), 3000);
|
||||
Log.print(
|
||||
'[DEBUG] Found drivers to notify: ${dataCarsLocationByPassenger['message']?.length}');
|
||||
if (dataCarsLocationByPassenger != null &&
|
||||
dataCarsLocationByPassenger.containsKey('message') &&
|
||||
dataCarsLocationByPassenger['message'] != null) {
|
||||
for (var driverData in dataCarsLocationByPassenger['message']) {
|
||||
String driverId = driverData['driver_id'].toString();
|
||||
if (!notifiedDrivers.contains(driverId)) {
|
||||
notifiedDrivers.add(driverId);
|
||||
double driverLat = double.parse(driverData['latitude']);
|
||||
double driverLng = double.parse(driverData['longitude']);
|
||||
double distanceToDriverInMeters = Geolocator.distanceBetween(
|
||||
passengerLocation.latitude,
|
||||
passengerLocation.longitude,
|
||||
driverLat,
|
||||
driverLng,
|
||||
);
|
||||
|
||||
double distanceToDriverInKm = distanceToDriverInMeters *
|
||||
1.25 / //to approximate to stright distance
|
||||
1000;
|
||||
double durationToDriverInHours =
|
||||
distanceToDriverInKm / 25; // 25 km/h as default speed
|
||||
double durationToDriverInSeconds = durationToDriverInHours * 3600;
|
||||
durationToPassenger = durationToDriverInSeconds.toInt();
|
||||
distanceByPassenger =
|
||||
(distanceToDriverInMeters * 1.25).toStringAsFixed(0);
|
||||
Future.delayed(const Duration(microseconds: 10));
|
||||
final body = constructNotificationBody(driverData);
|
||||
// Log.print('body:ww ${body}');
|
||||
Log.print(
|
||||
'[DEBUG] Sending to driver: ${driverData['driver_id']}, token: ${driverData['token']}');
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'Order', // without tr since background not valid
|
||||
endNameAddress,
|
||||
(driverData['token'].toString()),
|
||||
body,
|
||||
'order.wav');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
List<String> constructNotificationBody(var driverData) {
|
||||
final paymentController = Get.find<PaymentController>();
|
||||
return [
|
||||
@@ -2019,7 +2072,7 @@ class MapPassengerController extends GetxController {
|
||||
StreamController<String>.broadcast();
|
||||
Stream<String> get rideStatusStream => _rideStatusStreamController.stream;
|
||||
|
||||
int maxAttempts = 15;
|
||||
int maxAttempts = 28;
|
||||
|
||||
Future<void> delayAndFetchRideStatusForAllDriverAvailable(
|
||||
String rideId) async {
|
||||
@@ -2039,7 +2092,6 @@ class MapPassengerController extends GetxController {
|
||||
|
||||
try {
|
||||
var res = await getRideStatus(rideId);
|
||||
Log.print('res:2047 $res');
|
||||
String rideStatusDelayed = res.toString();
|
||||
Log.print('rideStatusDelayed: $rideStatusDelayed');
|
||||
|
||||
@@ -2061,15 +2113,33 @@ class MapPassengerController extends GetxController {
|
||||
timer.cancel();
|
||||
// Close stream after applying
|
||||
} else if (attemptCounter >= maxAttempts ||
|
||||
rideStatusDelayed != 'Cancel') {
|
||||
timer.cancel(); //todo
|
||||
rideStatusDelayed == 'waiting') {
|
||||
// timer.cancel(); //todo
|
||||
// addRideToNotificationDriverString();
|
||||
// Show dialog to increase fee...
|
||||
MyDialog().getDialog(
|
||||
'Are you want to wait drivers to accept your order'.tr, '', () {
|
||||
Get.back();
|
||||
addRideToNotificationDriverAvailable();
|
||||
});
|
||||
|
||||
// buildTimerForIncrease();
|
||||
Get.defaultDialog(
|
||||
title: 'Are you want to wait drivers to accept your order'.tr,
|
||||
middleText: '',
|
||||
onConfirm: () {
|
||||
Log.print('[DEBUG] User chose to wait again');
|
||||
Get.back();
|
||||
notifyAvailableDriversAgain();
|
||||
delayAndFetchRideStatusForAllDriverAvailable(rideId);
|
||||
// addRideToNotificationDriverAvailable();
|
||||
},
|
||||
onCancel: () {
|
||||
timer.cancel();
|
||||
Get.back();
|
||||
showCancelRideBottomSheet();
|
||||
},
|
||||
);
|
||||
// MyDialog().getDialog(
|
||||
// 'Are you want to wait drivers to accept your order'.tr, '', () {
|
||||
// Get.back();
|
||||
// addRideToNotificationDriverAvailable();
|
||||
// });
|
||||
update();
|
||||
_rideStatusStreamController
|
||||
.close(); // Close stream after max attempts
|
||||
@@ -2083,7 +2153,7 @@ class MapPassengerController extends GetxController {
|
||||
rideAppliedFromDriver(bool isApplied) async {
|
||||
await getUpdatedRideForDriverApply(rideId);
|
||||
NotificationController().showNotification(
|
||||
'Order Accepted'.tr,
|
||||
'Accepted Ride'.tr,
|
||||
'$driverName ${'accepted your order at price'.tr} ${totalPassenger.toStringAsFixed(1)} ${'with type'.tr} ${box.read(BoxName.carType)}',
|
||||
'ding');
|
||||
if (box.read(BoxName.carType) == 'Speed' ||
|
||||
@@ -2202,7 +2272,7 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
// driversToken.remove(driverToken);
|
||||
// for (var i = 1; i < driversToken.length; i++) {
|
||||
Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'Order Accepted'.tr,
|
||||
'$driverName${'Accepted your order'.tr}',
|
||||
driverToken.toString(),
|
||||
@@ -2920,7 +2990,7 @@ class MapPassengerController extends GetxController {
|
||||
var tokenParent = (res1['data'][0]['token']);
|
||||
Get.snackbar("The invitation was sent successfully".tr, '',
|
||||
backgroundColor: AppColor.greenColor);
|
||||
Get.find<FirebaseMessagesController>().sendNotificationToPassengerToken(
|
||||
firebaseMessagesController.sendNotificationToPassengerToken(
|
||||
"Trip Monitoring".tr,
|
||||
"Trip Monitoring".tr,
|
||||
tokenParent,
|
||||
@@ -3157,7 +3227,7 @@ class MapPassengerController extends GetxController {
|
||||
changeCancelRidePageShow();
|
||||
if (rideId != 'yet') {
|
||||
Log.print('cancelRide: 1');
|
||||
await Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
await firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'Cancel Trip'.tr,
|
||||
'Trip Cancelled'.tr,
|
||||
driverToken.toString(),
|
||||
@@ -5164,33 +5234,32 @@ class MapPassengerController extends GetxController {
|
||||
timeSelected);
|
||||
// Optionally, set up local notification or send a push notification
|
||||
|
||||
await Get.find<FirebaseMessagesController>()
|
||||
.sendNotificationToDriverMAP(
|
||||
'OrderVIP',
|
||||
rideId.toString(),
|
||||
(driver['token'].toString()),
|
||||
[
|
||||
id,
|
||||
rideId,
|
||||
driver['id'],
|
||||
passengerLocation.latitude.toString(),
|
||||
startNameAddress.toString(),
|
||||
passengerLocation.longitude.toString(),
|
||||
(box.read(BoxName.name).toString().split(' ')[0]).toString(),
|
||||
box.read(BoxName.passengerID).toString(),
|
||||
box.read(BoxName.phone).toString(),
|
||||
box.read(BoxName.email).toString(),
|
||||
box.read(BoxName.passengerPhotoUrl).toString(),
|
||||
box.read(BoxName.tokenFCM).toString(),
|
||||
(driver['token'].toString()),
|
||||
],
|
||||
'order.wav');
|
||||
await firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'OrderVIP',
|
||||
rideId.toString(),
|
||||
(driver['token'].toString()),
|
||||
[
|
||||
id,
|
||||
rideId,
|
||||
driver['id'],
|
||||
passengerLocation.latitude.toString(),
|
||||
startNameAddress.toString(),
|
||||
passengerLocation.longitude.toString(),
|
||||
(box.read(BoxName.name).toString().split(' ')[0]).toString(),
|
||||
box.read(BoxName.passengerID).toString(),
|
||||
box.read(BoxName.phone).toString(),
|
||||
box.read(BoxName.email).toString(),
|
||||
box.read(BoxName.passengerPhotoUrl).toString(),
|
||||
box.read(BoxName.tokenFCM).toString(),
|
||||
(driver['token'].toString()),
|
||||
],
|
||||
'order.wav');
|
||||
if (response['message'] == "Trip updated successfully") {
|
||||
mySnackbarSuccess("Trip updated successfully".tr);
|
||||
Log.print(
|
||||
'previous_driver_token: ${response['previous_driver_token']}');
|
||||
|
||||
Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'Order VIP Canceld'.tr,
|
||||
'Passenger cancel order'.tr,
|
||||
response['previous_driver_token'].toString(),
|
||||
@@ -5214,7 +5283,7 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
|
||||
cancelVip(String token, tripId) async {
|
||||
// Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
// firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
// 'Order VIP Canceld'.tr,
|
||||
// 'Passenger cancel order'.tr,
|
||||
// token,
|
||||
@@ -5230,7 +5299,7 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
|
||||
sendToDriverAgain(String token) {
|
||||
Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'Order VIP Canceld'.tr,
|
||||
'Passenger cancel order'.tr,
|
||||
token,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -55,7 +55,7 @@ class MapPagePassenger extends StatelessWidget {
|
||||
// const HeaderDestination(),
|
||||
const BurcMoney(),
|
||||
const PromoCode(),
|
||||
const ApplyOrderWidget(),
|
||||
ApplyOrderWidget(),
|
||||
const MapMenuWidget(),
|
||||
// hexagonClipper(),
|
||||
const CancelRidePageShow(),
|
||||
|
||||
@@ -13,8 +13,11 @@ import '../../../controller/functions/launch.dart';
|
||||
import '../../widgets/my_textField.dart';
|
||||
|
||||
class ApplyOrderWidget extends StatelessWidget {
|
||||
const ApplyOrderWidget({super.key});
|
||||
|
||||
ApplyOrderWidget({super.key});
|
||||
final firebaseMessagesController =
|
||||
Get.isRegistered<FirebaseMessagesController>()
|
||||
? Get.find<FirebaseMessagesController>()
|
||||
: Get.put(FirebaseMessagesController());
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Color _parseColor(String colorHex) {
|
||||
@@ -26,6 +29,8 @@ class ApplyOrderWidget extends StatelessWidget {
|
||||
}
|
||||
|
||||
return GetBuilder<MapPassengerController>(builder: (controller) {
|
||||
Get.put(
|
||||
FirebaseMessagesController()); // Ensure FirebaseMessagesController is initialized
|
||||
if (controller.statusRide == 'Apply' && !controller.isSearchingWindow) {
|
||||
return Positioned(
|
||||
bottom: 0,
|
||||
@@ -257,8 +262,7 @@ class ApplyOrderWidget extends StatelessWidget {
|
||||
padding: const EdgeInsets.only(bottom: 8.0),
|
||||
child: ElevatedButton(
|
||||
onPressed: () {
|
||||
Get.find<FirebaseMessagesController>()
|
||||
.sendNotificationToDriverMAP(
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'message From passenger',
|
||||
message.tr,
|
||||
controller.driverToken.toString(),
|
||||
@@ -291,8 +295,7 @@ class ApplyOrderWidget extends StatelessWidget {
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
if (controller.messagesFormKey.currentState!.validate()) {
|
||||
Get.find<FirebaseMessagesController>()
|
||||
.sendNotificationToDriverMAP(
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'message From passenger',
|
||||
controller.messageToDriver.text,
|
||||
controller.driverToken,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'package:Tripz/controller/firebase/firbase_messge.dart';
|
||||
import 'package:Tripz/controller/functions/encrypt_decrypt.dart';
|
||||
import 'package:Tripz/views/auth/sms_verfy_page.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -5,9 +7,13 @@ import 'package:flutter_font_icons/flutter_font_icons.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
import '../../../constant/colors.dart';
|
||||
import '../../../constant/table_names.dart';
|
||||
import '../../../controller/functions/secure_storage.dart';
|
||||
import '../../../controller/functions/tts.dart';
|
||||
import '../../../controller/home/map_passenger_controller.dart';
|
||||
import '../../../controller/home/vip_waitting_page.dart';
|
||||
import '../../../main.dart';
|
||||
import '../../../print.dart';
|
||||
|
||||
GetBuilder<MapPassengerController> leftMainMenuIcons() {
|
||||
Get.put(TextToSpeechController());
|
||||
@@ -77,12 +83,60 @@ class TestPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final firebaseMessagesController =
|
||||
Get.isRegistered<FirebaseMessagesController>()
|
||||
? Get.find<FirebaseMessagesController>()
|
||||
: Get.put(FirebaseMessagesController());
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: Center(
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
Get.to(SmsSignupEgypt());
|
||||
firebaseMessagesController.sendNotificationToDriverMAP(
|
||||
'Order',
|
||||
'body',
|
||||
'c2tXiuBJQCSg4CU4IfqYOL:APA91bFA0f8R3QMnPQnPEEdNyjY-jcoKt4nLBHxcLLsmDSuJn5yd4jSvwq7qDIZpkkPkjfjdwdKsGL0-G0aHpPyjfiBvbCwFmlRMCUKftNMNT7MJx2Bp16Y',
|
||||
[
|
||||
"32.1117875",
|
||||
"36.0669891",
|
||||
"32.1364001",
|
||||
"36.0707479",
|
||||
"24.84",
|
||||
"7.56",
|
||||
"436",
|
||||
"4.38",
|
||||
"109270481246447459618",
|
||||
"113172279072358305645",
|
||||
"hamza",
|
||||
"e4QWqe7K607luM7qUMOPCL:APA91bFjX4XBM4I5COJl9fyxCTKJ1ZQpT3vzY7iEbOTuT4uo0-OSCAt5zgVhlhw4aC33s-VhyucDnP1tQGFd9svaazQ8A_SKgolPk3owzug8dCsiXoPeJ0k",
|
||||
"+201010101010",
|
||||
"6",
|
||||
"43",
|
||||
"true",
|
||||
"c2tXiuBJQCSg4CU4IfqYOL:APA91bFA0f8R3QMnPQnPEEdNyjY-jcoKt4nLBHxcLLsmDSuJn5yd4jSvwq7qDIZpkkPkjfjdwdKsGL0-G0aHpPyjfiBvbCwFmlRMCUKftNMNT7MJx2Bp16Y",
|
||||
"6",
|
||||
"1188",
|
||||
"false",
|
||||
"109270481246447459618",
|
||||
"436",
|
||||
"startEnd",
|
||||
"32.12404505187645",
|
||||
"36.06566168367863",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"5.42",
|
||||
"0",
|
||||
"hamzaayedflutter@gmail.com",
|
||||
"4368+PPP، السخنة، الأردن",
|
||||
"43PC+C4G، السخنة، الأردن",
|
||||
"Speed",
|
||||
"8",
|
||||
"5.00"
|
||||
],
|
||||
'ding.wav');
|
||||
// await AppInitializer().getAIKey(Pasenger.FCM_PRIVATE_KEY);
|
||||
},
|
||||
child: Text(
|
||||
"Text Button",
|
||||
|
||||
@@ -17,7 +17,7 @@ class SearchingCaptainWindow extends StatelessWidget {
|
||||
builder: (mapPassengerController) {
|
||||
return mapPassengerController.isSearchingWindow
|
||||
? Positioned(
|
||||
bottom: 0,
|
||||
bottom: 34,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: Container(
|
||||
@@ -78,7 +78,7 @@ class SearchingCaptainWindow extends StatelessWidget {
|
||||
const Icon(Icons.timer_outlined,
|
||||
size: 16, color: Colors.grey),
|
||||
const SizedBox(width: 4),
|
||||
_buildTimer(mapPassengerController),
|
||||
buildTimerForIncrease(mapPassengerController),
|
||||
],
|
||||
),
|
||||
// const SizedBox(height: 8),
|
||||
@@ -124,7 +124,7 @@ class SearchingCaptainWindow extends StatelessWidget {
|
||||
// });
|
||||
// }
|
||||
|
||||
Widget _buildTimer(MapPassengerController mapPassengerController) {
|
||||
Widget buildTimerForIncrease(MapPassengerController mapPassengerController) {
|
||||
// Start timer at 0
|
||||
Timer? timer;
|
||||
|
||||
|
||||
@@ -311,13 +311,14 @@ class CountryPicker extends StatelessWidget {
|
||||
|
||||
final List<String> countryOptions = [
|
||||
'Jordan',
|
||||
'USA',
|
||||
'Syria',
|
||||
'Egypt',
|
||||
'Turkey',
|
||||
'Saudi Arabia',
|
||||
'Qatar',
|
||||
'Bahrain',
|
||||
'Kuwait',
|
||||
'USA'
|
||||
];
|
||||
|
||||
CountryPicker({Key? key}) : super(key: key);
|
||||
|
||||
Reference in New Issue
Block a user