hyzp_ybqx-Commit139:reset到hyzp_ybqx-Commit138,在此次提交基础上进行修改,不依赖任何外部模块。修改包括:
1、修改IOS的点位地图文本图标元素的上下顺序,IOS版点位地图的文本图标定位基本准确;
2、按公司要求合并初审、复审页面的车牌文字和颜色框到一行
This commit is contained in:
@@ -45,6 +45,8 @@ Future getListBMFMarker({List listDwinfo}) async {
|
||||
for (int i = 0; i < len; i++) {
|
||||
BMFMarker marker;
|
||||
if (Platform.isIOS) {
|
||||
// if (true) {
|
||||
// 用于安卓环境下测试
|
||||
marker = BMFMarker(
|
||||
position: getBMFCoordinate(listDwinfo[i]["dwzb"]),
|
||||
// title: '${listDwinfo[i]["id"].toString()}、${listDwinfo[i]["dwmc"]}',
|
||||
@@ -98,7 +100,6 @@ Future getListBMFMarker({List listDwinfo}) async {
|
||||
draggable: dragable);
|
||||
}
|
||||
|
||||
|
||||
// 百度地图的脑残设计,用Flutter添加多个BMFMarker时,必须在添加BMFMarker时自己保存ID,
|
||||
// 否则响应点击时无法确定用户点击的是哪个定位标注
|
||||
// 代码不会自动返回,也没有任何文档说明,是花了一天时间搜索网络无果,是自己翻江倒海摸索出来的
|
||||
@@ -109,6 +110,8 @@ Future getListBMFMarker({List listDwinfo}) async {
|
||||
|
||||
// android版专有
|
||||
if (Platform.isAndroid) {
|
||||
// if (false) {
|
||||
// 用于安卓环境下测试
|
||||
g_listBMFText.add(BMFText(
|
||||
// text: '${listDwinfo[i]["id"].toString()}、${listDwinfo[i]["dwmc"]}',
|
||||
text: '${(i + 1).toString()}、${listDwinfo[i]["dwmc"]}',
|
||||
|
||||
@@ -22,25 +22,6 @@ Future getIconWidget(String name) async {
|
||||
color: Colors.transparent,
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
textDirection: TextDirection.ltr,
|
||||
children: [
|
||||
SizedBox(width: _widthBtn * 0.5 + _icon_width),
|
||||
Container(
|
||||
// margin: EdgeInsets.only(left: _widthBtn * 0.5),
|
||||
// padding: EdgeInsets.only(left: _widthBtn * 0.5),
|
||||
width: _widthBtn,
|
||||
height: _text_height,
|
||||
color: Colors.yellow,
|
||||
child: Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
child: Text(name,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.black, fontWeight: FontWeight.bold, fontSize: 36.0))),
|
||||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
width: _widthBtn,
|
||||
height: _icon_height,
|
||||
@@ -62,6 +43,25 @@ Future getIconWidget(String name) async {
|
||||
),
|
||||
),
|
||||
),
|
||||
Row(
|
||||
textDirection: TextDirection.ltr,
|
||||
children: [
|
||||
SizedBox(width: _widthBtn * 0.5 + _icon_width),
|
||||
Container(
|
||||
// margin: EdgeInsets.only(left: _widthBtn * 0.5),
|
||||
// padding: EdgeInsets.only(left: _widthBtn * 0.5),
|
||||
width: _widthBtn,
|
||||
height: _text_height,
|
||||
color: Colors.yellow,
|
||||
child: Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
child: Text(name,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.black, fontWeight: FontWeight.bold, fontSize: 36.0))),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -93,7 +93,8 @@ class _HyshGroupState extends State<HyshGroup> {
|
||||
return Container(
|
||||
width: ScreenUtil().setWidth(1022),
|
||||
// height: ScreenUtil().setHeight(550),
|
||||
height: ScreenUtil().setHeight(480),
|
||||
// height: ScreenUtil().setHeight(480),
|
||||
height: ScreenUtil().setHeight(380),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.all(
|
||||
|
||||
@@ -697,6 +697,8 @@ Future getAllSumCll(String field, List listStatis) async {
|
||||
Future bmfInit() async {
|
||||
// 只有IOS版才需要
|
||||
if (Platform.isIOS) {
|
||||
// if (true) {
|
||||
// 用于安卓环境下测试
|
||||
g_myIconPathPre = await createDir(g_myIconDir);
|
||||
print("g_myIconPathPre = $g_myIconPathPre");
|
||||
// g_myIconPathPre = /data/user/0/com.example.hyzp_yibin_bmfmap/app_flutter/myIcons
|
||||
|
||||
Reference in New Issue
Block a user