设备 预约接口
This commit is contained in:
@@ -188,27 +188,23 @@ class ExperienceStoreWidget extends GetView {
|
||||
child: InkWell(
|
||||
onTap: () async {
|
||||
//"latitude" -> "31.858934" "longitude" -> "117.282166"
|
||||
// AppMapLocation.checkInstalledApps()
|
||||
// .then((d) {
|
||||
// if (AppMapLocation
|
||||
// .availableMapsToNames.isEmpty) {
|
||||
// showToast("未检测到导航软件");
|
||||
// } else {
|
||||
// showOneSelectionDialog(context,
|
||||
// title: "选择地图",
|
||||
// arr: AppMapLocation
|
||||
// .availableMapsToNames,
|
||||
// checkChange: (index) {
|
||||
// AppMapLocation.launchMap(
|
||||
// index,
|
||||
// data["name"],
|
||||
// double.parse(
|
||||
// "${data["latitude"]}"),
|
||||
// double.parse(
|
||||
// "${data["longitude"]}"));
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
AppMapLocation.checkInstalledApps().then((d) {
|
||||
if (AppMapLocation
|
||||
.availableMapsToNames.isEmpty) {
|
||||
showToast("未检测到导航软件");
|
||||
} else {
|
||||
showOneSelectionDialog(context,
|
||||
title: "选择地图",
|
||||
arr: AppMapLocation.availableMapsToNames,
|
||||
checkChange: (index) {
|
||||
AppMapLocation.launchMap(
|
||||
index,
|
||||
data["name"],
|
||||
double.parse("${data["latitude"]}"),
|
||||
double.parse("${data["longitude"]}"));
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
child: Container(
|
||||
width: MediaQuery.sizeOf(context).width * 0.105,
|
||||
|
||||
Reference in New Issue
Block a user