https://github.com/scientifichackers/flutter-use-location
A dead simple location access plugin for flutter.
https://github.com/scientifichackers/flutter-use-location
Last synced: about 1 year ago
JSON representation
A dead simple location access plugin for flutter.
- Host: GitHub
- URL: https://github.com/scientifichackers/flutter-use-location
- Owner: scientifichackers
- License: other
- Created: 2019-12-08T19:20:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-20T09:43:44.000Z (over 5 years ago)
- Last Synced: 2025-04-06T17:04:33.778Z (about 1 year ago)
- Language: Kotlin
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dartlang.org/packages/use_location)
# Use Location
Want to request access to user's location, and enable location services without dealing with the pesky permissions API? This plugin is for you!
- Uses google play services to enable location services using dialog box if available.
- Automatically opens app settings and location settings to enable location and grant permissions if all else fails.
- All using a _single_ method, that requires zero logic in your code.
```dart
import 'package:use_location/use_location.dart';
var status = await UseLocation.useLocation(
showEnableRationale: () async {
return await showYesNoDialog(
context,
"Please enable location to continue.",
);
},
showPermissionRationale: () async {
return await showYesNoDialog(
context,
"Please grant location permission to continue.",
);
},
);
```