Update: 2026-07-10 16:09:37
This commit is contained in:
@@ -946,9 +946,9 @@ class NavigationController extends GetxController
|
||||
Uri.parse(AppLink.mapSaasRoute).replace(queryParameters: queryParams);
|
||||
|
||||
try {
|
||||
final response = await http
|
||||
.get(saasUri, headers: {'x-api-key': Env.mapSaasKey})
|
||||
.timeout(const Duration(seconds: 15));
|
||||
final response = await http.get(saasUri, headers: {
|
||||
'x-api-key': Env.mapSaasKey
|
||||
}).timeout(const Duration(seconds: 15));
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
if (retryCount < 2) {
|
||||
@@ -1042,8 +1042,7 @@ class NavigationController extends GetxController
|
||||
|
||||
if (routeSteps.isNotEmpty) {
|
||||
currentInstruction = routeSteps[0]['text'] ?? "";
|
||||
currentManeuverModifier =
|
||||
ManeuverSign.fromValue(routeSteps[0]['sign']);
|
||||
currentManeuverModifier = ManeuverSign.fromValue(routeSteps[0]['sign']);
|
||||
nextInstruction = routeSteps.length > 1
|
||||
? (langCode == 'ar'
|
||||
? "ثم ${routeSteps[1]['text']}"
|
||||
|
||||
Reference in New Issue
Block a user