To avoid errors in the AndroidManifest.xml
file, you need to add your Google Maps API key to the android/local.properties
file. Follow these steps:
- Open the
android/local.properties
file in your project. - Add a new line with the following content:
googleMapApiKey=yourApiKey
, replacingyourApiKey
with your actual Google Maps API key. - Save the file.
The google_map_view.dart
file contains the configuration for the PlacePicker
widget. Follow these steps to update it:
- Open the
lib/Map/google_map_view.dart
file in your project. - Locate the
PlacePicker
widget. - Update the value of the
apiKey
parameter with your actual Google Maps API key. It should look likePlacePicker(apiKey: 'yourApiKey')
. - Save the file.
Make sure to replace yourApiKey
with your actual Google Maps API key in both configurations.
Replace "YOUR KEY HERE" with Google Maps API key.