更新
This commit is contained in:
@@ -118,7 +118,11 @@ class WeatherModelController extends GetControllerEx<WeatherModel> {
|
||||
return Future.error('位置服务未启用');
|
||||
}
|
||||
|
||||
showPermissionInfoDialog(Get.context!, CommonVariables().permissionInfo);
|
||||
try {
|
||||
showPermissionInfoDialog(Get.context!, CommonVariables().permissionInfo);
|
||||
} catch (e) {
|
||||
ef.log("$e");
|
||||
}
|
||||
// permission = await Geolocator.checkPermission();
|
||||
try {
|
||||
// 2️⃣ 检查权限(系统弹窗)—— 此时你的提示框仍然显示
|
||||
|
||||
Reference in New Issue
Block a user