如果按下标记,我想调出该标记的底页,以便在其中输入信息。理想情况下,所有标记都应有自己的底页。
我已经尝试了一些连续的方法(请记住,我是个初学者!)
这是我当前代码的底部:
Widget _googlemap(BuildContext context) {
return Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child:GoogleMap(
mapType: MapType.normal,
initialCameraPosition: CameraPosition(target: LatLng(52.950001,-1.150000), zoom: 15
),
onMapCreated: (GoogleMapController controller){
_controller.complete(controller);
},
markers:{
bhfMarker, oxfamMarker
}
));
}
}
Marker bhfMarker=Marker(
markerId: MarkerId('BritishHeartFoundation'),
position: LatLng(52.949846, -1.146811),
infoWindow: InfoWindow(title: 'British Heart Foundation'),
icon: BitmapDescriptor.defaultMarkerWithHue(
BitmapDescriptor.hueRed),
);
Marker oxfamMarker=Marker(
markerId: MarkerId('Oxfam'),
position: LatLng(52.949846, -1.160000),
infoWindow: InfoWindow(title: 'Oxfam'),
icon: BitmapDescriptor.defaultMarkerWithHue(
BitmapDescriptor.hueGreen),
);
谢谢
标记的确有一个onTap()
事件: