Displaying a map in the application is the first step in making a map-based application, so let's start by creating an application that displays a map and we will later add features to it. The Flutter framework does not contain a map widget directly in its core SDK; this is supported instead with the official google_maps_flutter plugin, which we will use to display a map like this:
At the time of writing this book, google_maps_flutter is in developers' preview; that is, the plugin relies on Flutter's new mechanism for embedding Android and iOS views and, as that mechanism is currently in developers' preview, this plugin should also be considered in developers' preview.
Displaying a map in Flutter apps requires some adjustments to the default application. So, let's begin by understanding what these adjustments are and then add support...