mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-06-09 08:23:55 +02:00
UX actually close
This commit is contained in:
@@ -120,8 +120,8 @@ class MapOverlays extends StatelessWidget {
|
||||
builder: (context, appState, child) {
|
||||
return Column(
|
||||
children: [
|
||||
// Search/Route button (top of controls)
|
||||
if (onSearchPressed != null)
|
||||
// Search/Route button (top of controls) - hide when in search/route modes
|
||||
if (onSearchPressed != null && !appState.isInSearchMode && !appState.isInRouteMode)
|
||||
FloatingActionButton(
|
||||
mini: true,
|
||||
heroTag: "search_nav",
|
||||
@@ -129,7 +129,8 @@ class MapOverlays extends StatelessWidget {
|
||||
tooltip: appState.hasActiveRoute ? 'Route Overview' : 'Search Location',
|
||||
child: Icon(appState.hasActiveRoute ? Icons.route : Icons.search),
|
||||
),
|
||||
if (onSearchPressed != null) const SizedBox(height: 8),
|
||||
if (onSearchPressed != null && !appState.isInSearchMode && !appState.isInRouteMode)
|
||||
const SizedBox(height: 8),
|
||||
|
||||
// Layer selector button
|
||||
const LayerSelectorButton(),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:latlong2/latlong.dart';
|
||||
@@ -171,6 +172,7 @@ class NavigationSheet extends StatelessWidget {
|
||||
icon: const Icon(Icons.check),
|
||||
label: const Text('Select Location'),
|
||||
onPressed: () {
|
||||
debugPrint('[NavigationSheet] Select Location button pressed');
|
||||
appState.selectRouteLocation();
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user