Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 24406f0

Browse files
committed
Updating documentation to use isEmpty check.
The value returned is never null. This is already done correclty in the example app.
1 parent a9ac52f commit 24406f0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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.6.7+7
2+
3+
* Updating documentation to use isEmpty check.
4+
15
## 0.6.7+6
26

37
* Update package:e2e -> package:integration_test

packages/image_picker/image_picker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Android system -- although very rarely -- sometimes kills the MainActivity after
7777
Future<void> retrieveLostData() async {
7878
final LostData response =
7979
await picker.getLostData();
80-
if (response == null) {
80+
if (response.isEmpty) {
8181
return;
8282
}
8383
if (response.file != null) {

packages/image_picker/image_picker/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: image_picker
22
description: Flutter plugin for selecting images from the Android and iOS image
33
library, and taking new pictures with the camera.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker
5-
version: 0.6.7+6
5+
version: 0.6.7+7
66

77
flutter:
88
plugin:

0 commit comments

Comments
 (0)