commit | 5f9affc8edc2685cd34d62950244e5edc81363b9 | [log] [tgz] |
---|---|---|
author | Amir Hardon <amirh@users.noreply.github.com> | Thu Dec 06 11:23:30 2018 -0800 |
committer | GitHub <noreply@github.com> | Thu Dec 06 11:23:30 2018 -0800 |
tree | 7082741625ec7ebb557609583cc4cf0a98402880 | |
parent | d89cae7289ec4f7a51b6e7a17e3f0bb9498d0b19 [diff] |
Control the GoogleMap options with widget parameters. (#961) The current Google Maps API was completely controller based (it was designed before the platform views support). Now that the GoogleMap is a widget, we are re-designing the API around the GoogleMap widget. This PR removes the public GoogleMapOptions class, and moves the map options to be widget parameters. When the widget is rebuilt we compute the options delta and send an update over the method channel. The `initialCameraPosition` parameter was moved out of the GoogleMapOptions Android and iOS implementations as we do not update it when the map options are updated. Additional API tweaks in this change: * Make `initialCameraPosition` a required parameter for the `GoogleMap` widget. * Don't require an onMapCreated parameter for `GoogleMap`.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter first-party plugins (i.e., plugins developed by the core Flutter team). Check the packages
directory for all plugins.
Flutter plugins enable access to platform-specific APIs. For more information about plugins, and how to use them, see https://flutter.io/platform-plugins/.
These plugins are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo.
If you wish to contribute a new plugin to the Flutter ecosystem, please see the documentation for developing packages and platform channels. You can store your plugin source code in any GitHub repository (the present repo is only intended for plugins developed by the core Flutter team). Once your plugin is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide, and send a pull request.
These are the available plugins in this repository.
Learn more about FlutterFire.