UX actually close

This commit is contained in:
stopflock
2025-10-02 17:39:29 -05:00
parent 763fa31266
commit bac033528c
4 changed files with 36 additions and 19 deletions
+4 -3
View File
@@ -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(),