Optional navigation features

This commit is contained in:
stopflock
2025-10-03 00:09:25 -05:00
parent 8b4b9722c4
commit fd47813bdf
4 changed files with 29 additions and 21 deletions
+3 -3
View File
@@ -121,8 +121,8 @@ class MapOverlays extends StatelessWidget {
builder: (context, appState, child) {
return Column(
children: [
// Navigation button - simplified logic
if (onSearchPressed != null && (appState.showSearchButton || appState.showRouteButton))
// Navigation button - simplified logic (only show in dev mode)
if (kEnableNavigationFeatures && onSearchPressed != null && (appState.showSearchButton || appState.showRouteButton)) ...[
FloatingActionButton(
mini: true,
heroTag: "search_nav",
@@ -132,8 +132,8 @@ class MapOverlays extends StatelessWidget {
: LocalizationService.instance.t('navigation.searchLocation'),
child: Icon(appState.showRouteButton ? Icons.route : Icons.search),
),
if (onSearchPressed != null && (appState.showSearchButton || appState.showRouteButton))
const SizedBox(height: 8),
],
// Layer selector button
const LayerSelectorButton(),