In the present day we’ll see a quick walkthrough on tips on how to use Google Maps with Flutter, utilizing the official google_maps_flutter plugin that’s offered by the Flutter workforce itself. Usually utilizing Flutter plugins are fairly simple and require solely a package deal set up with possibly configuring some issues on the native stage code. Nevertheless, on this article we’ll attempt to implement among the APIs accessible within the package deal and see how it may be utilized in observe.
As all the time, we’ll begin from scratch by creating a brand new Flutter challenge after which including the google_maps_flutter package deal. A caveat to utilizing this package deal is that since we’re working with Google Maps within the app, we would wish a Google Maps API key. For that, you’ll have to create a challenge on Google Cloud Platform and allow the maps API. This can require utilizing your bank card or another type of cost registration, however it would present free utilization of Google Maps as much as $200, which must be greater than sufficient for our functions. For more information on this take a look at the official Google Maps documentation (https://builders.google.com/maps/gmp-get-started).