I am using file_picker 5.0.1, while selecting image from Android device Gallery app it shows this error.
I/FilePickerDelegate(26740): User cancelled the picker request
This is the code snippet, I am using to call file picker
FilePickerResult? result =
await FilePicker.platform
.pickFiles(
type: FileType.image,
allowMultiple: false,
allowCompression: false,
});
if (result != null) {
print(result.files.length);
}
My flutter version : 3.0.5 Android compileSdkVersion : 31 Android minSdkVersion : 19 Android targetSdkVersion : 31