diff --git a/siro_rider/lib/views/home/route_planner/rp_actions.dart b/siro_rider/lib/views/home/route_planner/rp_actions.dart index c802fae0..c2754f70 100644 --- a/siro_rider/lib/views/home/route_planner/rp_actions.dart +++ b/siro_rider/lib/views/home/route_planner/rp_actions.dart @@ -71,9 +71,9 @@ class RpActions { _map.changeMainBottomMenuMap(); _s.passengerStartLocationFromMap = true; _map.isPickerShown = true; - _ride.getDirectionMap( - '${_s.passengerLocation.latitude},${_s.passengerLocation.longitude}', - '${_s.myDestination.latitude},${_s.myDestination.longitude}'); + _map.mapController?.animateCamera( + CameraUpdate.newLatLngZoom(_s.passengerLocation, 16), + ); } } @@ -171,8 +171,8 @@ class RpActions { 'rate': 'N/A', }, TableName.placesFavorite); if (!context.mounted) return; - Toast.show(context, '$title ${'Saved Successfully'.tr}', - AppColor.primaryColor); + Toast.show( + context, '$title ${'Saved Successfully'.tr}', AppColor.primaryColor); } /// Route to a stored place (recent or favorite) after confirmation.