26-1-22/3
This commit is contained in:
@@ -45,7 +45,9 @@ class GoogleMapPassengerWidget extends StatelessWidget {
|
||||
() async {
|
||||
controller.clearPolyline();
|
||||
// Ensure we have car data available before routing
|
||||
if (controller.dataCarsLocationByPassenger != null) {
|
||||
// if (controller.dataCarsLocationByPassenger != null) {
|
||||
// i use this check if needed
|
||||
if (controller.carsLocationByPassenger.isNotEmpty) {
|
||||
await controller.getDirectionMap(
|
||||
'${controller.passengerLocation.latitude},${controller.passengerLocation.longitude}',
|
||||
'${argument.latitude},${argument.longitude}',
|
||||
|
||||
@@ -77,7 +77,8 @@ class _SearchingCaptainWindowState extends State<SearchingCaptainWindow>
|
||||
child: OutlinedButton(
|
||||
onPressed: () {
|
||||
// [تعديل 3] استدعاء دالة الإلغاء الموحدة
|
||||
controller.cancelRide();
|
||||
controller.changeCancelRidePageShow();
|
||||
// ();
|
||||
},
|
||||
style: OutlinedButton.styleFrom(
|
||||
foregroundColor: AppColor.writeColor,
|
||||
|
||||
Reference in New Issue
Block a user