Skip to content

image_picker_android-v0.8.13+22

@ashutosh2014 ashutosh2014 tagged this 03 Sep 14:55
## Description

Fixes an issue where `image_picker` returns a null file after selecting an image from the gallery on Android 16+, caused by incorrect handling of content URIs in the Android implementation.

## Changes

- Updated `ImagePickerUtils.java` to handle Android 16+ behavior correctly
- Fixed file picking logic

## Tests

- Added unit tests for `effectiveUsePhotoPicker` to verify behavior on Android 16 (API 36)
- Ensured correct behavior across API levels

## Issue

Fixes flutter/flutter#182071
Fixes https://github.com/flutter/flutter/issues/184826

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Assets 2
Loading