Update: 2026-06-19 01:47:48
This commit is contained in:
@@ -2137,17 +2137,21 @@ class RideLifecycleController extends GetxController {
|
||||
polyLines = polyLines
|
||||
.where((p) =>
|
||||
!p.polylineId.value.startsWith('driver_route') &&
|
||||
p.polylineId.value != 'main_route' &&
|
||||
p.polylineId.value != 'route_primary' &&
|
||||
p.polylineId.value != 'route_direct')
|
||||
.toSet();
|
||||
|
||||
if (statusRide == 'Begin' ||
|
||||
currentRideState.value == RideState.inProgress) {
|
||||
// لا نرسم أي شيء في حالة البدء لأنه وصل
|
||||
polyLines = polyLines
|
||||
.where((p) => !p.polylineId.value.startsWith('driver_route'))
|
||||
.toSet();
|
||||
polyLines = {
|
||||
...polyLines.where((p) => !p.polylineId.value.startsWith('driver_route')),
|
||||
Polyline(
|
||||
polylineId: const PolylineId('main_route'),
|
||||
points: remainingPoints,
|
||||
color: const Color(0xFF2196F3),
|
||||
width: 6,
|
||||
),
|
||||
};
|
||||
} else {
|
||||
polyLines = {
|
||||
...polyLines,
|
||||
@@ -4263,6 +4267,11 @@ class RideLifecycleController extends GetxController {
|
||||
return segments;
|
||||
}
|
||||
|
||||
// Call this externally when passengerLocation changes to refresh walk line
|
||||
void updatePassengerWalkLine() {
|
||||
_updatePassengerWalkLine();
|
||||
}
|
||||
|
||||
// تحديث الخط المنقط ومكان أيقونة المشي للراكب
|
||||
void _updatePassengerWalkLine() {
|
||||
polyLines.removeWhere(
|
||||
|
||||
Reference in New Issue
Block a user