Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Expose the new style property of GoogleMap with version 2.6 #83

Open
giorgio79 opened this issue Mar 13, 2024 · 0 comments
Open

Expose the new style property of GoogleMap with version 2.6 #83

giorgio79 opened this issue Mar 13, 2024 · 0 comments

Comments

@giorgio79
Copy link

Previously, we could call

 PlacePicker(
        onMapCreated: (mapController) {
          mapController.setMapStyle(globals.gMapsMonochrome);
        },

Now as per https://pub.dev/packages/google_maps_flutter/changelog#260

"Adds style to the GoogleMap widget constructor. This allows setting the map style during creation, avoiding the possibility of the default style being displayed briefly.
Deprecates GoogleMapController.setMapStyle in favor of setting the style via the new widget style parameter."

Eg if someone had a dark theme with Google Maps:
flutter/flutter#144524

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant