add storage permission back for iOS versions before iOS14
This commit is contained in:
parent
7c48244058
commit
a1f80f7bc3
@ -42,7 +42,7 @@ class _MyAppState extends State<MyApp> {
|
||||
|
||||
Future<bool> _promptPermissionSetting() async {
|
||||
if (Platform.isIOS) {
|
||||
if (await Permission.photos.request().isGranted) {
|
||||
if (await Permission.photos.request().isGranted || await Permission.storage.request().isGranted) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user