diff --git a/lib/upload_image/down_load_image_tool.dart b/lib/upload_image/down_load_image_tool.dart index 58915ee..1e7906a 100644 --- a/lib/upload_image/down_load_image_tool.dart +++ b/lib/upload_image/down_load_image_tool.dart @@ -15,8 +15,8 @@ class DownLoadImageTool { // 请求照片库权限 static Future requestPhotoPermission() async { // 检查当前权限状态 - var status = await Permission.photos.status; - + // var status = await Permission.photos.status; + var status = await Permission.storage.request(); if (status.isDenied) { // 请求权限 status = await Permission.photos.request();