nav UX tweaks

This commit is contained in:
stopflock
2025-12-05 16:36:04 -06:00
parent b1a39a2320
commit 8c4f53ff7b
5 changed files with 44 additions and 11 deletions
+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();
}