For this project, we'll be using the Google Maps API to show the user a map and add markers to it. As with other Google services, Maps is free up to a certain threshold. You, as a developer, should be able to use it for free in most cases. For production purposes, though, this threshold might not be enough.
For details about pricing and thresholds in Google Maps for a production app, have a look at the following page: https://cloud.google.com/maps-platform/pricing/.
Let's begin integrating our maps into Flutter, as follows
- Create a new Flutter app, and call it treasure_mapp.
- Add the Google Maps plugin as a dependency in the pubspec.yaml file. The package is called google_maps_flutter, and you can find the latest version on pub.dartlang.org. The code can be seen in the following snippet:
dependencies:
google_maps_flutter: ^0.5...