Update: 2026-07-06 04:25:14

This commit is contained in:
Hamza-Ayed
2026-07-06 04:25:14 +03:00
parent df1f487804
commit 8e6dbf96e2
@@ -41,23 +41,26 @@ class NavigationView extends StatelessWidget {
children: [
// ── 1. Map Layer ──────────────────────────────────────────────
GetBuilder<SettingController>(
builder: (s) => IntaleqMap(
apiKey: Env.mapSaasKey,
onMapCreated: c.onMapCreated,
onLongPress: (pos) => c.onMapLongPressed(Point(0, 0), pos),
onTap: (pos) => c.onMapTapped(Point(0, 0), pos),
markers: c.markers,
polylines: c.polylines,
circles: c.circles,
polygons: c.polygons,
mapType: s.isMapDarkMode
? IntaleqMapType
.normal // Normal in SiroMap seems to be Dark
: IntaleqMapType.light,
initialCameraPosition: CameraPosition(
target: c.myLocation ?? const LatLng(33.5138, 36.2765),
zoom: 16.0),
myLocationEnabled: false,
builder: (s) => Listener(
onPointerDown: (_) => c.onUserPanned(),
child: IntaleqMap(
apiKey: Env.mapSaasKey,
onMapCreated: c.onMapCreated,
onLongPress: (pos) => c.onMapLongPressed(Point(0, 0), pos),
onTap: (pos) => c.onMapTapped(Point(0, 0), pos),
markers: c.markers,
polylines: c.polylines,
circles: c.circles,
polygons: c.polygons,
mapType: s.isMapDarkMode
? IntaleqMapType
.normal // Normal in SiroMap seems to be Dark
: IntaleqMapType.light,
initialCameraPosition: CameraPosition(
target: c.myLocation ?? const LatLng(33.5138, 36.2765),
zoom: 16.0),
myLocationEnabled: false,
),
),
),
@@ -88,10 +91,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(),