Skip to content

lakshygupta/Flutter-CurrentLocationDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Location Detector

Location Detection in Flutter

Adding the Geolocator plugin

1. pubspec.yaml

dependencies: flutter: sdk: flutter geolocator: ^5.1.3

2. Add the following to your "gradle.properties" file:

android.useAndroidX=true android.enableJetifier=true

3. Make sure you set the compileSdkVersion in your "android/app/build.gradle" file to 28

4. For android, head on over to your AndroidManifest.xml and add either of these permissions: