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`.
20 files changed
tree: 7082741625ec7ebb557609583cc4cf0a98402880
  1. .opensource/
  2. packages/
  3. script/
  4. .cirrus.yml
  5. .gitattributes
  6. .gitignore
  7. analysis_options.yaml
  8. AUTHORS
  9. CONTRIBUTING.md
  10. FlutterFire.md
  11. LICENSE
  12. README.md
README.md

Flutter plugins

Build Status

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.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo.

Contributing

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.

Plugins

These are the available plugins in this repository.

PluginPub
android_alarm_managerpub package
android_intentpub package
batterypub package
camerapub package
connectivitypub package
device_infopub package
google_maps_flutterpub package
google_sign_inpub package
image_pickerpub package
local_authpub package
package_infopub package
path_providerpub package
quick_actionspub package
sensorspub package
sharepub package
shared_preferencespub package
url_launcherpub package
video_playerpub package
webview_flutterpub package
FlutterFire Plugins
cloud_firestorepub package
cloud_functionspub package
firebase_admobpub package
firebase_analyticspub package
firebase_authpub package
firebase_corepub package
firebase_databasepub package
firebase_dynamic_linkspub package
firebase_messagingpub package
firebase_ml_visionpub package
firebase_performancepub package
firebase_remote_configpub package
firebase_storagepub package

Learn more about FlutterFire.