|
|
@@ -16,12 +16,7 @@ class PermissionUtil {
|
|
|
|
|
|
static Future<bool> checkLocationPermission() async {
|
|
|
final status = await Permission.locationWhenInUse.status;
|
|
|
- if (status.isGranted) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- {
|
|
|
- return false;
|
|
|
- }
|
|
|
+ return status.isGranted;
|
|
|
}
|
|
|
|
|
|
static Future<bool> requestShowLocationAlways() async {
|