Flutter Google Maps, Trying to create an already created platform view, view id: 0

前端 未结 5 2353
萌比男神i
萌比男神i 2021-02-18 22:15

For first time google maps flutter ,loads perfect but when hot restart it , it goes to platform exception

google_maps_flutter: ^0.5.21+15

Github [google_maps_fl

5条回答
  •  星月不相逢
    2021-02-18 22:35

    The issue is due to using the same controller in multiple GoogleMaps widget. Build only one GoogleMap widget and use the GoogleMapController object to make any changes.

提交回复
热议问题