gotoAMap static method
高德地图
Implementation
static Future<bool> gotoAMap(longitude, latitude) async {
var url = '${Platform.isAndroid ? 'android' : 'ios'}amap://navi?sourceApplication=amap&lat=$latitude&lon=$longitude&dev=0&style=2';
bool canLaunch = await canLaunchUrl(Uri.parse(url));
if (!canLaunch) {
return false;
}
await launchUrl(Uri.parse(url));
return canLaunch;
}