Google Map Integration in Flutter

You are currently viewing Google Map Integration in Flutter
Google Map Integration

Google Map Integration in Flutter

Flutter Google Maps Tutorial

Setup

android/app/src/main/AndroidManifest.xml
<manifest ...
  <application ...
    <meta-data android:name="com.google.android.geo.API_KEY"
               android:value="YOUR KEY HERE"/>
ios/Runner/AppDelegate.swift
import UIKit
import Flutter
import GoogleMaps

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GMSServices.provideAPIKey("YOUR KEY HERE")
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
lib/.env.dart
const String googleAPIKey = 'YOUR KEY HERE';

Credit

This is developed by MarcusNg
Download this project from the below link.
https://github.com/MarcusNg/flutter_gmaps/archive/refs/heads/main.zip
You can visit original source page from the below link:
https://github.com/MarcusNg/flutter_gmaps

Spread the love
See also  Google Map Place Picker in Flutter Plugin

Leave a Reply