feat(ios):修改iOS照片请求权限
This commit is contained in:
@@ -15,8 +15,8 @@ class DownLoadImageTool {
|
|||||||
// 请求照片库权限
|
// 请求照片库权限
|
||||||
static Future<bool> requestPhotoPermission() async {
|
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) {
|
if (status.isDenied) {
|
||||||
// 请求权限
|
// 请求权限
|
||||||
status = await Permission.photos.request();
|
status = await Permission.photos.request();
|
||||||
|
|||||||
Reference in New Issue
Block a user