From 6aba4fb6c2b57a86a6d6c40ea22455ef9e8b6670 Mon Sep 17 00:00:00 2001 From: brand17 <36546021+brand17@users.noreply.github.com> Date: Thu, 13 Jul 2023 19:37:47 +0300 Subject: [PATCH] ios permissions changed `Permission.photos` should be requested instead of `Permission.storage` for ios --- example/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 08ac933..ca7b1c3 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -42,7 +42,7 @@ class _MyAppState extends State { Future _promptPermissionSetting() async { if (Platform.isIOS) { - if (await Permission.storage.request().isGranted) { + if (await Permission.photos.request().isGranted) { return true; } }