إضافة الهوية الجديدة Tripz

This commit is contained in:
Hamza-Ayed
2026-07-29 02:31:04 +03:00
parent ecbe245b77
commit b9a97effe5
634 changed files with 5149 additions and 5294 deletions
@@ -34,7 +34,8 @@ class NearbyDriversController extends GetxController {
carsLocationByPassenger = [];
final locSearch = Get.find<LocationSearchController>();
if (locSearch.passengerLocation.latitude == 0 && locSearch.passengerLocation.longitude == 0) {
if (locSearch.passengerLocation.latitude == 0 &&
locSearch.passengerLocation.longitude == 0) {
return false;
}
@@ -85,7 +86,8 @@ class NearbyDriversController extends GetxController {
if (lat == 0.0 || lng == 0.0) continue;
String driverId = (carData['driver_id'] ?? carData['id'] ?? '').toString();
String driverId =
(carData['driver_id'] ?? carData['id'] ?? '').toString();
if (driverId.isEmpty || driverId == 'null') continue;
_updateOrCreateMarker(
@@ -334,7 +336,8 @@ class NearbyDriversController extends GetxController {
String markerId, LatLng newPosition, double newHeading, String icon) {
final mapEngine = Get.find<MapEngineController>();
if (!mapEngine.isIconsLoaded) {
Log.print("⚠️ Skipping drawing marker $markerId because map icons are not fully loaded yet.");
Log.print(
"⚠️ Skipping drawing marker $markerId because map icons are not fully loaded yet.");
return;
}
final mId = MarkerId(markerId);
@@ -407,7 +410,8 @@ class NearbyDriversController extends GetxController {
};
if (mapEngine.mapController != null) {
mapEngine.mapController!.animateCamera(CameraUpdate.newLatLng(currentPos));
mapEngine.mapController!
.animateCamera(CameraUpdate.newLatLng(currentPos));
}
mapEngine.update();