ns_google_map_location_picker 0.0.3 copy "ns_google_map_location_picker: ^0.0.3" to clipboard
ns_google_map_location_picker: ^0.0.3 copied to clipboard

outdated

A Flutter plugin which allows user to pick location using Google Maps.

ns_google_map_location_picker #

Getting Started Get an API key at https://cloud.google.com/maps-platform/.

and don't forget to enable in https://console.cloud.google.com/google/maps-apis/

Maps SDK for Android Maps SDK for iOS Places API Geolocation API Geocoding API Android Specify your API key in the application manifest android/app/src/main/AndroidManifest.xml:

<manifest ... <application ...

#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 Or in your swift code, specify your API key in the application delegate ios/Runner/AppDelegate.swift:

import UIKit import Flutter import GoogleMaps

@UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? ) -> Bool { GMSServices.provideAPIKey("YOUR KEY HERE") GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES; you need also to define NSLocationWhenInUseUsageDescription

android.permission.ACCESS_COARSE_LOCATION Allows the API to use WiFi or mobile cell data (or both) to determine the device's location. The API returns the location with an accuracy approximately equivalent to a city block.

android.permission.ACCESS_FINE_LOCATION Allows the API to determine as precise a location as possible from the available location providers, including the Global Positioning System (GPS) as well as WiFi and mobile cell data.

You must also explicitly declare that your app uses the android.hardware.location.network or android.hardware.location.gps hardware features if your app targets Android 5.0 (API level 21) or higher and uses the ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission in order to receive location updates from the network or a GPS, respectively.

0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A Flutter plugin which allows user to pick location using Google Maps.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

after_layout, dio, flutter, flutter_screenutil, geolocator, geopoint, google_maps_flutter, intl, screen_loader

More

Packages that depend on ns_google_map_location_picker