mirror of
https://github.com/flutter/samples.git
synced 2026-04-02 01:32:58 +00:00
Add web support to place_tracker (#550)
* enable web for place_tracker * add place_tracker symlink * add generated_plugin_registrant.dart * update google_maps_flutter_web to fix pins not showing * add place_tracker to peanut.yaml * upgrade place_tracker dep * use a 32 pixel square * Apply zoom to selected category when the PlaceMapState updates. This fixes a grey screen issue in web, after saving a place. * pub upgrade * run pub upgrade * use published versions of packages * remove lib/generated_plugin_registrant.dart * add newline * add web API key to README Co-authored-by: David Iglesias Teixeira <ditman@gmail.com>
This commit is contained in:
@@ -61,6 +61,13 @@ Specify your API key in `AppDelegate.swift`:
|
||||
}
|
||||
```
|
||||
|
||||
### Web
|
||||
Add your API key to `web/index.html` in the `<head>` tag:
|
||||
|
||||
```
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=<YOUR_API_KEY_HERE>"></script>
|
||||
```
|
||||
|
||||
For additional help setting up the plugin, see the plugin's
|
||||
[README](https://pub.dev/packages/google_maps_flutter)
|
||||
page.
|
||||
|
||||
Reference in New Issue
Block a user