use_location

Creator: coderz1093

Last updated:

0 purchases

use_location Image
use_location Images

Languages

Categories

Add to Cart

Description:

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.

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.",
);
},
);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.