Browse Source

上传代码

weicu
liwei1dao 1 year ago
parent
commit
a490eca9a1
  1. 17
      lib/modules/agent/controllers/agent_controller.dart

17
lib/modules/agent/controllers/agent_controller.dart

@ -804,13 +804,16 @@ class AgentController extends GetxController with WidgetsBindingObserver {
}); });
// } // }
} else if (metaResult.containsKey("maps_route_navigation")) { } else if (metaResult.containsKey("maps_route_navigation")) {
final maps_route_navigation =
metaResult["maps_route_navigation"];
if (maps_route_navigation is Map<String, dynamic>) {
final card_navigation =
maps_route_navigation["card_navigation"];
if (card_navigation is Map<String, dynamic>) {
//导航 //导航
final start = metaResult["maps_route_navigation"] final start = card_navigation["start"] as String;
["card_navigation"]["start"] as String; final end = card_navigation["end"] as String;
final end = metaResult["maps_route_navigation"] final items = card_navigation['items'];
["card_navigation"]["end"] as String;
final items = metaResult["maps_route_navigation"]
["card_navigation"]['items'];
if (items != null) { if (items != null) {
Future.delayed(Duration(seconds: 2), () { Future.delayed(Duration(seconds: 2), () {
// Logger.i(TAG, 'liwei-------- 打开导航页面: $start $end '); // Logger.i(TAG, 'liwei-------- 打开导航页面: $start $end ');
@ -818,6 +821,8 @@ class AgentController extends GetxController with WidgetsBindingObserver {
openNavigation(start, end, ""); openNavigation(start, end, "");
}); });
} }
}
}
} else if (metaResult } else if (metaResult
.containsKey("maps_google_route_navigation")) { .containsKey("maps_google_route_navigation")) {
//导航 //导航

Loading…
Cancel
Save