Update: 2026-06-19 01:47:48

This commit is contained in:
Hamza-Ayed
2026-06-19 01:47:48 +03:00
parent f13faa8c31
commit a003bf78c4
34 changed files with 6207 additions and 13499 deletions

View File

@@ -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(