This video shows the use of Google Maps in a flutter. The plugin was launched by the Flutter team in Flutter 1.0 live this year.
* Google Maps in Flutter | Integrate Google Maps Flutter*
There was everything special in the Flutter event (this year). Choosing one out of them, I decided to explore Google Maps…
Asked by developers, delivered by Flutter….
Things needed…
Add google_maps_flutter in the pubspec.yaml
Get an API key at https://cloud.google.com/maps-platform/.
For Android: Specify your API key in the application manifest android/app/src/main/AndroidManifest.xml
For iOS: Specify your API key in the application delegate ios/Runner/AppDelegate.m:
Important lines :
#import “GoogleMaps/GoogleMaps.h”
[GMSServices provideAPIKey:@”YOUR KEY HERE”]
3. Add import ‘package:google_maps_flutter/google_maps_flutter.dart’; in your main.dart
Start with initializing the GoogleMap (a widget)
onMapCreated: Callback which takes GoogleMapController…initialized as
GoogleMapController mapController;
options: An optional widget, can be used for customizing the Google Maps UI configurations.
Website: http://flatteredwithflutter.com/googl...
Medium post: / flutter-and-google-maps
Src code: https://github.com/AseemWangoo/flutte...
In case, this helped, pass me a coffee!! 😊😊
https://www.buymeacoffee.com/aseemwangoo
#GoogleMaps #FlatteredWithFlutter #Flutter