How to add a marker tap/click on map using Flutter/Dart?

后端 未结 3 771
鱼传尺愫
鱼传尺愫 2021-01-12 16:10

I just started to take a look into flutter/dart. Coming from HTML5/Javascript, I wonder what would be an equivalent to:

google.maps.event.addListener(map, \         


        
3条回答
  •  天涯浪人
    2021-01-12 16:55

    you want to take the mapcontroller and use it for ex:

    **GoogleMapController controller;**
    
    **controller.onMarkerTapped.add((Marker marker){/...your code.../);**
    

提交回复
热议问题