ios permissions changed
`Permission.photos` should be requested instead of `Permission.storage` for ios
This commit is contained in:
parent
b3bf868ae9
commit
6aba4fb6c2
@ -42,7 +42,7 @@ class _MyAppState extends State<MyApp> {
|
|||||||
|
|
||||||
Future<bool> _promptPermissionSetting() async {
|
Future<bool> _promptPermissionSetting() async {
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
if (await Permission.storage.request().isGranted) {
|
if (await Permission.photos.request().isGranted) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user