Customize the center location button in Flutter Google Map

4,368

Solution 1

Set following properties on GoogleMap object:

myLocationButtonEnabled: false,
myLocationEnabled: true,

Work with google_maps_flutter: ^0.5.13

Solution 2

As it stands this isn't possible, the only possible work around would be to design your UI so that it blocks it.

Share:
4,368
TSR
Author by

TSR

Updated on December 09, 2022

Comments

  • TSR
    TSR over 1 year

    I am using google_maps_flutter: ^0.0.3+3

    How do I remove the default square button to center location and still keep the blue dot current position ?

    If it is not possible, how to customize it ?

    enter image description here