nav UX tweaks

This commit is contained in:
stopflock committed 2025-12-05 16:36:04 -06:00
1 parent b1a39a2320
commit 8c4f53ff7b
5 files changed
+44 -11

No files matched your search

+7
View File
@@ -207,8 +207,15 @@ class NavigationState extends ChangeNotifier {
_routeEndAddress = _provisionalPinAddress;
}
// BRUTALIST FIX: Set calculating state BEFORE clearing isSettingSecondPoint
// to prevent UI from briefly showing route buttons again
_isSettingSecondPoint = false;
_isCalculating = true;
_routingError = null; // Clear any previous errors
// Notify listeners immediately to update UI before async calculation starts
notifyListeners();
_calculateRoute();
}