6/9/4
This commit is contained in:
@@ -362,74 +362,111 @@ 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]}');
|
||||
|
||||
Get.to(() => DriverSpeedLocationMapPage(),
|
||||
arguments: {
|
||||
'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(),
|
||||
});
|
||||
// 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(),
|
||||
'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(),
|
||||
'startNameLocation': myList[29].toString(),
|
||||
'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(),
|
||||
// }
|
||||
);
|
||||
}
|
||||
// });
|
||||
// Get.back();
|
||||
|
||||
Reference in New Issue
Block a user