Update: 2026-06-11 13:47:39

This commit is contained in:
Hamza-Ayed
2026-06-11 13:47:40 +03:00
parent 977adfe99d
commit c5170a88d2
516 changed files with 3654 additions and 3321 deletions

View File

@@ -481,12 +481,14 @@ class NavigationController extends GetxController
}
bool _isProcessing = false;
Future<void> handleLocationUpdateFromCentral(LatLng newLoc, double locSpeed, double locHeading) async {
Future<void> handleLocationUpdateFromCentral(
LatLng newLoc, double locSpeed, double locHeading) async {
if (_isProcessing) return;
_isProcessing = true;
try {
currentSpeed = locSpeed; // Convert m/s to km/h already done by location controller if needed, wait location_controller sends raw speed or km/h? It sends raw speed. So we should * 3.6
currentSpeed =
locSpeed; // Convert m/s to km/h already done by location controller if needed, wait location_controller sends raw speed or km/h? It sends raw speed. So we should * 3.6
currentSpeed = locSpeed * 3.6;
// Skip if movement is too small
@@ -1158,7 +1160,7 @@ class NavigationController extends GetxController
_lastTraveledIndexInFullRoute = 0;
currentInstruction = "";
nextInstruction = "";
currentManeuverModifier = "intaleq";
currentManeuverModifier = "siro";
distanceToNextStep = "";
totalDistanceRemaining = "";
estimatedTimeRemaining = "";

View File

@@ -51,7 +51,8 @@ class NavigationView extends StatelessWidget {
circles: c.circles,
polygons: c.polygons,
mapType: s.isMapDarkMode
? IntaleqMapType.normal // Normal in IntaleqMap seems to be Dark
? IntaleqMapType
.normal // Normal in SiroMap seems to be Dark
: IntaleqMapType.light,
initialCameraPosition: CameraPosition(
target: c.myLocation ?? const LatLng(33.5138, 36.2765),
@@ -159,7 +160,7 @@ class _NavigationCenterIcon extends StatelessWidget {
size: 32,
),
),
const SizedBox(height: 40),
const SizedBox(height: 40),
],
),
),