This commit is contained in:
Hamza Aleghwairyeen
2024-04-03 16:45:45 +03:00
parent 342a922832
commit a17ef6a7e6
5 changed files with 61 additions and 3 deletions

View File

@@ -389,7 +389,7 @@ class OrderRequestPage extends StatelessWidget {
FirebaseMessagesController()
.sendNotificationToPassengerToken(
'Refused Ride',
'${box.read(BoxName.nameDriver)} ${'rejct your order.'.tr}',
'${box.read(BoxName.nameDriver)} ${'reject your order.'.tr}',
arguments['DriverList'][9].toString(),
// box.read(BoxName.tokenDriver).toString(),
bodyToPassenger,
@@ -397,6 +397,19 @@ class OrderRequestPage extends StatelessWidget {
orderRequestController.refuseOrder(
myList[16].toString(),
);
orderRequestController.addRideToNotificationDriverString(
myList[16].toString(),
myList[0].toString(),
myList[1].toString(),
'${DateTime.now().year}-${DateTime.now().month}-${DateTime.now().day}',
'${DateTime.now().hour}:${DateTime.now().minute}',
myList[2].toString(),
myList[7].toString(),
'wait',
myList[31].toString(),
myList[33].toString(),
myList[2].toString(),
myList[5].toString());
},
kolor: AppColor.redColor,
),