mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-02-12 16:52:51 +00:00
Fix search/nav button offline behavior
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"1.6.1": {
|
||||
"content": [
|
||||
"• IMPROVED: Navigation route calculation timeout increased from 15 to 30 seconds - better success rate for complex routes in dense areas",
|
||||
"• TECHNICAL: Route timeout is now configurable in dev_config for easier future adjustments"
|
||||
"• Navigation route calculation timeout increased from 15 to 30 seconds - better success rate for complex routes in dense areas",
|
||||
"• Route timeout is now configurable in dev_config for easier future adjustments",
|
||||
"• Fix accidentally opening edit sheet on node tap instead of tags sheet"
|
||||
]
|
||||
},
|
||||
"1.6.0": {
|
||||
|
||||
@@ -80,12 +80,12 @@ class NavigationCoordinator {
|
||||
}) {
|
||||
final appState = context.read<AppState>();
|
||||
|
||||
if (appState.isInRouteMode) {
|
||||
// Show route overview (zoom out to show full route)
|
||||
if (appState.showRouteButton) {
|
||||
// Route button - show route overview and zoom to show route
|
||||
appState.showRouteOverview();
|
||||
zoomToShowFullRoute(appState: appState, mapController: mapController);
|
||||
} else {
|
||||
// Not in route - handle based on current state
|
||||
// Search button - toggle search mode
|
||||
if (appState.isInSearchMode) {
|
||||
// Exit search mode
|
||||
appState.clearSearchResults();
|
||||
|
||||
@@ -159,7 +159,7 @@ class MapOverlays extends StatelessWidget {
|
||||
children: [
|
||||
// Search/Navigation button - show search button always, show route button only in dev mode when online
|
||||
if (onSearchPressed != null) ...[
|
||||
if (appState.showSearchButton || (enableNavigationFeatures(offlineMode: appState.offlineMode) && appState.showRouteButton)) ...[
|
||||
if ((!appState.offlineMode && appState.showSearchButton) || appState.showRouteButton) ...[
|
||||
FloatingActionButton(
|
||||
mini: true,
|
||||
heroTag: "search_nav",
|
||||
|
||||
Reference in New Issue
Block a user