navigationMapList method
Implementation
List<NavigationMapItem> navigationMapList() {
if (widget.navigationMapList != null &&
widget.navigationMapList!.isNotEmpty) {
return widget.navigationMapList!;
}
List<NavigationMapItem> appList = [
NavigationMapItem(
TIM_t("腾讯地图"), LocationUtils.gotoTencentMap), // "Tencent Map"
NavigationMapItem(TIM_t("高德地图"), LocationUtils.gotoAMap), // "AMap"
NavigationMapItem(
TIM_t("百度地图"), LocationUtils.gotoBaiduMap), // "Baidu Map"
];
if (Platform.isIOS) {
appList = [
...appList,
NavigationMapItem(TIM_t("苹果地图"), LocationUtils.gotoAppleMap)
]; // "Apple Map"
}
return appList;
}