PlatformException(photo_access_denied,用户不允许访问照片。,null,null)

发布于 2025-01-31 11:46:44 字数 84 浏览 2 评论 0原文

如果用户不允许访问照片来选择图像,我想请他再问一次许可或打开设置以更改许可,如何使用image_cropper执行此操作,如何访问许可,然后询问用户再次?

If the user didn't allow access to the photos to pick images, I want to ask him another time for the permission or open settings to change the permission, how to do that with image_cropper, how to access the permission and then ask the user again?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

匿名。 2025-02-07 11:46:44

您可以使用此软件包获得权限状态
https://pub.dev/packages/permision_handler

var status = await Permission.camera.status;
if (status.isDenied) {
  // Here you can open app settings so that the user can give permission
  openAppSettings();
}

You can use this package to get permission status
https://pub.dev/packages/permission_handler

var status = await Permission.camera.status;
if (status.isDenied) {
  // Here you can open app settings so that the user can give permission
  openAppSettings();
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文