Update: 2026-07-06 04:21:17

This commit is contained in:
Hamza-Ayed
2026-07-06 04:21:17 +03:00
parent e42754bb0e
commit 32a6531613
@@ -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(),