This commit is contained in:
Hamza-Ayed
2023-10-06 12:02:34 +03:00
parent edc3a4348d
commit 54e948e93b
14 changed files with 505 additions and 75 deletions

View File

@@ -74,7 +74,7 @@ class OrderRequestPage extends StatelessWidget {
padding: const EdgeInsets.all(8.0),
child: RichText(
text: TextSpan(
text: 'Tatal From Passenger is '.tr,
text: 'Total From Passenger is '.tr,
style: AppStyle.title,
children: [
TextSpan(
@@ -116,7 +116,7 @@ class OrderRequestPage extends StatelessWidget {
padding: const EdgeInsets.all(8.0),
child: RichText(
text: TextSpan(
text: 'Tatal For You is '.tr,
text: 'Total For You is '.tr,
style: AppStyle.title,
children: [
TextSpan(
@@ -179,7 +179,7 @@ class OrderRequestPage extends StatelessWidget {
];
// print(bodyToPassenger);
FirebaseMessagesController()
.sendNotificanToPassengerToken(
.sendNotificationToPassengerToken(
'Apply Ride',
arguments['DriverList'][9].toString(),
arguments['DriverList'][9].toString(),
@@ -189,6 +189,16 @@ class OrderRequestPage extends StatelessWidget {
Get.back();
Get.to(() => PassengerLocationDirection(), arguments: {
'passengerLocation': myList[0].toString(),
'Duration': myList[4].toString(),
'Distance': myList[5].toString(),
'name': myList[8].toString(),
'phone': myList[10].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(),
});
},
),
@@ -225,7 +235,7 @@ class OrderRequestPage extends StatelessWidget {
myList[6].toString(), body.toString());
FirebaseMessagesController()
.sendNotificanToPassengerToken(
.sendNotificationToPassengerToken(
'Refused Ride',
arguments['DriverList'][9].toString(),
arguments['DriverList'][9].toString(),