Update: 2026-07-06 04:25:14
This commit is contained in:
@@ -41,7 +41,9 @@ class NavigationView extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
// ── 1. Map Layer ──────────────────────────────────────────────
|
// ── 1. Map Layer ──────────────────────────────────────────────
|
||||||
GetBuilder<SettingController>(
|
GetBuilder<SettingController>(
|
||||||
builder: (s) => IntaleqMap(
|
builder: (s) => Listener(
|
||||||
|
onPointerDown: (_) => c.onUserPanned(),
|
||||||
|
child: IntaleqMap(
|
||||||
apiKey: Env.mapSaasKey,
|
apiKey: Env.mapSaasKey,
|
||||||
onMapCreated: c.onMapCreated,
|
onMapCreated: c.onMapCreated,
|
||||||
onLongPress: (pos) => c.onMapLongPressed(Point(0, 0), pos),
|
onLongPress: (pos) => c.onMapLongPressed(Point(0, 0), pos),
|
||||||
@@ -60,6 +62,7 @@ class NavigationView extends StatelessWidget {
|
|||||||
myLocationEnabled: false,
|
myLocationEnabled: false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
|
||||||
// ── 2. Top UI (Explore Mode) ──────────────────────────────────
|
// ── 2. Top UI (Explore Mode) ──────────────────────────────────
|
||||||
if (!c.isNavigating) _ExploreTopUI(controller: c),
|
if (!c.isNavigating) _ExploreTopUI(controller: c),
|
||||||
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user