From 32a65316138e13124f3662768b1860bca15c4d3f Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Mon, 6 Jul 2026 04:21:17 +0300 Subject: [PATCH] Update: 2026-07-06 04:21:17 --- .../home/navigation/navigation_view.dart | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/siro_rider/lib/views/home/navigation/navigation_view.dart b/siro_rider/lib/views/home/navigation/navigation_view.dart index 4e2b35ea..c533b9ed 100644 --- a/siro_rider/lib/views/home/navigation/navigation_view.dart +++ b/siro_rider/lib/views/home/navigation/navigation_view.dart @@ -43,23 +43,26 @@ class NavigationView extends StatelessWidget { builder: (_) => Stack( children: [ // ── 1. Map Layer ────────────────────────────────────────────── - IntaleqMap( - apiKey: Env.mapSaasKey, - onMapCreated: c.onMapCreated, - onStyleLoaded: c.onStyleLoaded, - onLongPress: (latlng) => c.onMapLongPressed(Point(0, 0), latlng), - onTap: (latlng) => c.onMapTapped(Point(0, 0), latlng), - markers: c.markers, - polylines: c.polylines, - circles: c.circles, - polygons: c.polygons, - mapType: Get.isDarkMode - ? IntaleqMapType.normal - : IntaleqMapType.light, - initialCameraPosition: CameraPosition( - target: c.myLocation ?? const LatLng(33.5138, 36.2765), - zoom: 16.0), - myLocationEnabled: false, + Listener( + onPointerDown: (_) => c.onUserPanned(), + child: IntaleqMap( + apiKey: Env.mapSaasKey, + onMapCreated: c.onMapCreated, + onStyleLoaded: c.onStyleLoaded, + onLongPress: (latlng) => c.onMapLongPressed(Point(0, 0), latlng), + onTap: (latlng) => c.onMapTapped(Point(0, 0), latlng), + markers: c.markers, + polylines: c.polylines, + circles: c.circles, + polygons: c.polygons, + mapType: Get.isDarkMode + ? IntaleqMapType.normal + : IntaleqMapType.light, + initialCameraPosition: CameraPosition( + target: c.myLocation ?? const LatLng(33.5138, 36.2765), + zoom: 16.0), + myLocationEnabled: false, + ), ), // ── 2. Top UI (Explore Mode) ────────────────────────────────── @@ -89,10 +92,10 @@ class NavigationView extends StatelessWidget { _LocationPickerOverlay(controller: c), // ── 10. Recenter Button ─────────────────────────────────────── - if (!c.isCameraLocked && !c.isNavigating) + if (!c.isCameraLocked) Positioned( right: 16, - bottom: 250, + bottom: c.isNavigating ? 150 : 250, child: _buildMapFAB( icon: Icons.my_location_rounded, onTap: () => c.relockCameraToUser(),