Skip to content

Commit e599121

Browse files
anniek-valkEgor
authored andcommitted
[image_picker] Updated docs getImage() about preference rear front not working on Android (flutter#3037)
1 parent 2d578a9 commit e599121

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
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+8
2+
3+
* Update documentation of getImage() about Android's disability to preference front/rear camera.
4+
15
## 0.6.7+7
26

37
* Updating documentation to use isEmpty check.

packages/image_picker/image_picker/lib/image_picker.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ class ImagePicker {
8787
///
8888
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
8989
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
90-
/// Defaults to [CameraDevice.rear].
90+
/// Defaults to [CameraDevice.rear]. Note that Android has no documented parameter for an intent to specify if
91+
/// the front or rear camera should be opened, this function is not guaranteed
92+
/// to work on an Android device.
9193
///
9294
/// In Android, the MainActivity can be destroyed for various reasons. If that happens, the result will be lost
9395
/// in this call. You can then call [getLostData] when your app relaunches to retrieve the lost data.

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+7
5+
version: 0.6.7+8
66

77
flutter:
88
plugin:

packages/image_picker/image_picker_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.1
2+
3+
* Update documentation of getImage() about Android's disability to preference front/rear camera.
4+
15
## 1.1.0
26

37
* Introduce PickedFile type for the new API.

packages/image_picker/image_picker_platform_interface/lib/src/platform_interface/image_picker_platform.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ abstract class ImagePickerPlatform extends PlatformInterface {
132132
///
133133
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
134134
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
135-
/// Defaults to [CameraDevice.rear].
135+
/// Defaults to [CameraDevice.rear]. Note that Android has no documented parameter for an intent to specify if
136+
/// the front or rear camera should be opened, this function is not guaranteed
137+
/// to work on an Android device.
136138
///
137139
/// In Android, the MainActivity can be destroyed for various reasons. If that happens, the result will be lost
138140
/// in this call. You can then call [retrieveLostData] when your app relaunches to retrieve the lost data.

packages/image_picker/image_picker_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A common platform interface for the image_picker plugin.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 1.1.0
6+
version: 1.1.1
77

88
dependencies:
99
flutter:

0 commit comments

Comments
 (0)