[英]How always display marker onTap() event?
我创建了自定义信息窗口。 点击标记时会显示。 可以一直显示吗?
Marker(
markerId: MarkerId(driverPoint.location.latitude.toString() +
driverPoint.location.longitude.toString()),
position: driverPoint.location,
icon: _destinationIcon,
onTap: () =>_onTap(driverPoint),
),
我在构建方法中添加了onTap方法。.现在显示..但我无法移动地图。 我得到这个错误
if(driverPoint.location.longitude != null){
_onTap(driverPoint);
}
错误:flutter / lib / ui / ui_dart_state.cc(148)]未处理的异常:'package:flutter / src / widgets / navigator.dart':失败的断言:2069行pos 12:'!_debugLocked':不正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.