Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

kf6gpe/flutter-gps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mygps

A simple project showing GPS and map integration in Flutter.

To use this, you'll need to have an map API key from Google and/or Apple, and add it to your project.

First, Get an API key at https://cloud.google.com/maps-platform/.

Next, follow the steps below for each platform.

Android

Specify your API key in the application manifest android/app/src/main/AndroidManifest.xml:

<manifest ...
  <application ...
    <meta-data android:name="com.google.android.geo.API_KEY"
               android:value="YOUR KEY HERE"/>

iOS

Supply your API key in the application delegate ios/Runner/AppDelegate.m:

#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
#import "GoogleMaps/GoogleMaps.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [GMSServices provideAPIKey:@"YOUR KEY HERE"];
  [GeneratedPluginRegistrant registerWithRegistry:self];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@end

Getting Started

For help getting started with Flutter, view our online documentation.

flutter-gps

About

Flutter GPS / MapView Sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published