6/30/1
This commit is contained in:
@@ -296,6 +296,7 @@ class OrderRequestPage extends StatelessWidget {
|
||||
onPressed: () async {
|
||||
box.write(BoxName.statusDriverLocation, 'on');
|
||||
|
||||
orderRequestController.endTimer();
|
||||
orderRequestController.changeApplied();
|
||||
await CRUD().postFromDialogue(
|
||||
link: AppLink.addDriverOrder,
|
||||
@@ -320,12 +321,13 @@ class OrderRequestPage extends StatelessWidget {
|
||||
];
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
'Apply Ride', 'your ride is applied'.tr,
|
||||
// arguments['DriverList'][9].toString(),
|
||||
arguments['DriverList'][9].toString(),
|
||||
// box.read(BoxName.tokenDriver).toString(),
|
||||
bodyToPassenger,
|
||||
);
|
||||
'Apply Ride',
|
||||
'your ride is applied'.tr,
|
||||
// arguments['DriverList'][9].toString(),
|
||||
arguments['DriverList'][9].toString(),
|
||||
// box.read(BoxName.tokenDriver).toString(),
|
||||
bodyToPassenger,
|
||||
'start.wav');
|
||||
Get.back();
|
||||
box.write(BoxName.rideArguments, {
|
||||
'passengerLocation': myList[0].toString(),
|
||||
@@ -392,6 +394,7 @@ class OrderRequestPage extends StatelessWidget {
|
||||
MyElevatedButton(
|
||||
title: 'Refuse Order'.tr,
|
||||
onPressed: () async {
|
||||
orderRequestController.endTimer();
|
||||
List<String> bodyToPassenger = [
|
||||
box.read(BoxName.driverID).toString(),
|
||||
box.read(BoxName.nameDriver).toString(),
|
||||
@@ -400,12 +403,12 @@ class OrderRequestPage extends StatelessWidget {
|
||||
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
'Refused Ride',
|
||||
'${box.read(BoxName.nameDriver)} ${'reject your order.'.tr}',
|
||||
arguments['DriverList'][9].toString(),
|
||||
// box.read(BoxName.tokenDriver).toString(),
|
||||
bodyToPassenger,
|
||||
);
|
||||
'Refused Ride'.tr,
|
||||
'${box.read(BoxName.nameDriver)} ${'reject your order.'.tr}',
|
||||
arguments['DriverList'][9].toString(),
|
||||
// box.read(BoxName.tokenDriver).toString(),
|
||||
bodyToPassenger,
|
||||
'cancel.wav');
|
||||
orderRequestController.refuseOrder(
|
||||
myList[16].toString(),
|
||||
);
|
||||
|
||||
@@ -350,12 +350,13 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
});
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
'Apply Ride', 'your ride is applied'.tr,
|
||||
// arguments['DriverList'][9].toString(),
|
||||
arguments['DriverList'][9].toString(),
|
||||
// box.read(BoxName.tokenDriver).toString(),
|
||||
bodyToPassenger,
|
||||
);
|
||||
'Apply Ride',
|
||||
'your ride is applied'.tr,
|
||||
// arguments['DriverList'][9].toString(),
|
||||
arguments['DriverList'][9].toString(),
|
||||
// box.read(BoxName.tokenDriver).toString(),
|
||||
bodyToPassenger,
|
||||
'start.wav');
|
||||
Get.back();
|
||||
|
||||
// 'Arguments passed to PassengerLocationMapPage:');
|
||||
@@ -397,42 +398,7 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
'endNameLocation': myList[30].toString(),
|
||||
});
|
||||
Get.to(() => PassengerLocationMapPage(),
|
||||
arguments: box.read(BoxName.rideArguments)
|
||||
// {
|
||||
// 'passengerLocation': myList[0].toString(),
|
||||
// 'passengerDestination': myList[1].toString(),
|
||||
// 'Duration': myList[4].toString(),
|
||||
// 'totalCost': myList[26].toString(),
|
||||
// 'Distance': myList[5].toString(),
|
||||
// 'name': myList[8].toString(),
|
||||
// 'phone': myList[10].toString(),
|
||||
// 'email': myList[28].toString(),
|
||||
// 'WalletChecked': myList[13].toString(),
|
||||
// 'tokenPassenger': myList[9].toString(),
|
||||
// 'direction':
|
||||
// 'https://www.google.com/maps/dir/${myList[0]}/${myList[1]}/',
|
||||
// 'DurationToPassenger': myList[15].toString(),
|
||||
// 'rideId': myList[16].toString(),
|
||||
// 'passengerId': myList[7].toString(),
|
||||
// 'driverId': myList[18].toString(),
|
||||
// 'durationOfRideValue': myList[19].toString(),
|
||||
// 'paymentAmount': myList[2].toString(),
|
||||
// 'paymentMethod': myList[13].toString() == 'true'
|
||||
// ? 'visa'
|
||||
// : 'cash',
|
||||
// 'isHaveSteps': myList[20].toString(),
|
||||
// 'step0': myList[21].toString(),
|
||||
// 'step1': myList[22].toString(),
|
||||
// 'step2': myList[23].toString(),
|
||||
// 'step3': myList[24].toString(),
|
||||
// 'step4': myList[25].toString(),
|
||||
// 'passengerWalletBurc': myList[26].toString(),
|
||||
// 'timeOfOrder': DateTime.now().toString(),
|
||||
// 'totalPassenger': myList[2].toString(),
|
||||
// 'carType': myList[31].toString(),
|
||||
// 'kazan': myList[32].toString(),
|
||||
// }
|
||||
);
|
||||
arguments: box.read(BoxName.rideArguments));
|
||||
}
|
||||
// });
|
||||
// Get.back();
|
||||
|
||||
Reference in New Issue
Block a user