accuracy_setting 1.0.0

Flutter Android iOS

Get Location Accuracy Setting, Sometimes you need higher accuracy to get better results, or you need to make sure GPS is activated. If so, this plugin is for you.

accuracy_setting #

Get Location Accuracy Setting

Get Accuracy #

AccuracySettingMode mode = await AccuracySetting.getAccuracySetting();
print(mode);

Response #

LOCATION_MODE_OFF,
LOCATION_MODE_SENSORS_ONLY,
LOCATION_MODE_BATTERY_SAVING,
LOCATION_MODE_HIGH_ACCURACY,
NOT_IMPLEMENTED, // if API < 19 or API >= 28

Get Provider Enabled #

return true if enabled

if (await AccuracySetting.getProviderEnabled(LocationProvider.GPS)) {
  print("GPS Active");
}

if (await AccuracySetting.getProviderEnabled(LocationProvider.NETWORK)) {
  print("Network Active");
}

Author #

This plugin for Flutter is developed by Fuad Ar-Radhi.

2
likes
100
pub points
13%
popularity

Publisher

fuadarradhi.com

Get Location Accuracy Setting, Sometimes you need higher accuracy to get better results, or you need to make sure GPS is activated. If so, this plugin is for you.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on accuracy_setting