Answers for "flutter check if location enabled"

0

flutter check if location enabled

// Using Permission Handler Package
if (await Permission.locationWhenInUse.serviceStatus.isEnabled) {
  // Use location.
}


//Using Location Package
var location = Location();
if ( await location.serviceEnabled()){
  // Use location
}
Posted by: Guest on June-12-2021

Code answers related to "flutter check if location enabled"

Browse Popular Code Answers by Language