accuracy_setting 1.0.0
accuracy_setting: ^1.0.0 copied to clipboard
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.