地图中文名称
This commit is contained in:
@@ -28,7 +28,20 @@ class MapsSheet {
|
|||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
onMapTap(map);
|
onMapTap(map);
|
||||||
},
|
},
|
||||||
title: Text(map.mapName),
|
title: () {
|
||||||
|
var mapName = "";
|
||||||
|
switch (map.mapType) {
|
||||||
|
case MapType.amap:
|
||||||
|
mapName = "高德地图";
|
||||||
|
break;
|
||||||
|
case MapType.baidu:
|
||||||
|
mapName = "百度地图";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
mapName = map.mapName;
|
||||||
|
}
|
||||||
|
return Text(mapName);
|
||||||
|
}(),
|
||||||
leading: SvgPicture.asset(
|
leading: SvgPicture.asset(
|
||||||
map.icon,
|
map.icon,
|
||||||
height: 30.0,
|
height: 30.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user