cankarabag / flutter_gmaps

https://youtu.be/Zz5hMvgiWmY

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Google Maps Tutorial

YouTube Video

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';

About

https://youtu.be/Zz5hMvgiWmY


Languages

Language:Dart 62.7%Language:Ruby 17.9%Language:HTML 10.1%Language:Swift 8.2%Language:Kotlin 0.9%Language:Objective-C 0.3%