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: [ children: [
// ── 1. Map Layer ────────────────────────────────────────────── // ── 1. Map Layer ──────────────────────────────────────────────
GetBuilder<SettingController>( GetBuilder<SettingController>(
builder: (s) => IntaleqMap( builder: (s) => Listener(
apiKey: Env.mapSaasKey, onPointerDown: (_) => c.onUserPanned(),
onMapCreated: c.onMapCreated, child: IntaleqMap(
onLongPress: (pos) => c.onMapLongPressed(Point(0, 0), pos), apiKey: Env.mapSaasKey,
onTap: (pos) => c.onMapTapped(Point(0, 0), pos), onMapCreated: c.onMapCreated,
markers: c.markers, onLongPress: (pos) => c.onMapLongPressed(Point(0, 0), pos),
polylines: c.polylines, onTap: (pos) => c.onMapTapped(Point(0, 0), pos),
circles: c.circles, markers: c.markers,
polygons: c.polygons, polylines: c.polylines,
mapType: s.isMapDarkMode circles: c.circles,
? IntaleqMapType polygons: c.polygons,
.normal // Normal in SiroMap seems to be Dark mapType: s.isMapDarkMode
: IntaleqMapType.light, ? IntaleqMapType
initialCameraPosition: CameraPosition( .normal // Normal in SiroMap seems to be Dark
target: c.myLocation ?? const LatLng(33.5138, 36.2765), : IntaleqMapType.light,
zoom: 16.0), initialCameraPosition: CameraPosition(
myLocationEnabled: false, 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), _LocationPickerOverlay(controller: c),
// ── 10. Recenter Button ─────────────────────────────────────── // ── 10. Recenter Button ───────────────────────────────────────
if (!c.isCameraLocked && !c.isNavigating) if (!c.isCameraLocked)
Positioned( Positioned(
right: 16, right: 16,
bottom: 250, bottom: c.isNavigating ? 150 : 250,
child: _buildMapFAB( child: _buildMapFAB(
icon: Icons.my_location_rounded, icon: Icons.my_location_rounded,
onTap: () => c.relockCameraToUser(), onTap: () => c.relockCameraToUser(),