feat(ios):修改iOS照片请求权限
This commit is contained in:
1 parent
0794910cab
commit
9b3ee731c2
1 file changed
+2
-2
@@ -15,8 +15,8 @@ class DownLoadImageTool {
|
||||
// 请求照片库权限
|
||||
static Future<bool> 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();
|
||||
|
||||
Reference in new issue
Block a user