Skip to content

Commit a602c57

Browse files
committed
Update README, CHANGELOG and pubspec
1 parent 7e3f5da commit a602c57

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/image_picker/image_picker/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.7+4
2+
3+
* Updates README to mention usage of `launchMode: singleInstance` for Android.
4+
15
## 0.8.7+3
26

37
* Adds handling of unsupported image types to the example.

packages/image_picker/image_picker/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ It is no longer required to add `android:requestLegacyExternalStorage="true"` as
4141
**Note:** Images and videos picked using the camera are saved to your application's local cache, and should therefore be expected to only be around temporarily.
4242
If you require your picked image to be stored permanently, it is your responsibility to move it to a more permanent location.
4343

44+
45+
**Note:** Launching the image picker from an `Activity` with `launchMode: singleInstance` will always return `RESULT_CANCELED`. In this launch mode, new activities are created in a separate [Task][2]. As activities cannot communicate between tasks, the image picker activity cannot send back its eventual result to the calling activity. To work around this problem, consider using `launchMode: singleTask` instead.
46+
4447
### Example
4548

4649
<?code-excerpt "readme_excerpts.dart (Pick)"?>
@@ -111,3 +114,4 @@ Starting with version **0.8.2** of the image_picker plugin, new methods have bee
111114
| `LostData response = await _picker.getLostData()` | `LostDataResponse response = await _picker.retrieveLostData()` |
112115

113116
[1]: https://pub.dev/packages/image_picker_for_web#limitations-on-the-web-platform
117+
[2]: https://developer.android.com/guide/components/activities/tasks-and-back-stack

packages/image_picker/image_picker/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for selecting images from the Android and iOS image
33
library, and taking new pictures with the camera.
44
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
6-
version: 0.8.7+3
6+
version: 0.8.7+4
77

88
environment:
99
sdk: ">=2.18.0 <4.0.0"

0 commit comments

Comments
 (0)