Omar
Omar

Reputation: 410

Google Maps widget in Flutter, how to move or remove zoom button

So basically I was wondering if there's any way to move the position of this button, or even remove it.

enter image description here

I need to move/remove it because when using extendBody: true in order to show the map even behind of the FBA, the button stays in the middle of the BottomNavBar.

Thanks!

Upvotes: 3

Views: 2895

Answers (1)

santi
santi

Reputation: 169

You can change the visibility of the zoom control buttons by setting the zoomControlsEnabled property (docs) when displaying the Google Maps widget:


GoogleMap(
  ...
  zoomControlsEnabled: false,
  ...
)

Upvotes: 6

Related Questions