You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "[image_picker] add forceFullMetadata to interface" (flutter#4314)
Reverts flutter#4288 which published a breaking change as if it were a non-breaking change.
The discussion in that PR prior to it landing was incorrect, because adding a new parameter
with a default value is non-breaking *only for clients*. It is breaking for subclasses that
override it, and the purpose of the platform interface is for implementations to subclass it
and override everything.
Copy file name to clipboardexpand all lines: packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart
-6
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,13 @@ class MethodChannelImagePicker extends ImagePickerPlatform {
Copy file name to clipboardexpand all lines: packages/image_picker/image_picker_platform_interface/lib/src/platform_interface/image_picker_platform.dart
-12
Original file line number
Diff line number
Diff line change
@@ -58,11 +58,6 @@ abstract class ImagePickerPlatform extends PlatformInterface {
58
58
/// image types such as JPEG. If compression is not supported for the image that is picked,
59
59
/// a warning message will be logged.
60
60
///
61
-
/// `forceFullMetadata` defaults to `true`, so the plugin tries to get the full image metadata which may require
62
-
/// extra permission requests on certain platforms.
63
-
/// If `forceFullMetadata` is set to `false`, the plugin fetches the image in a way that reduces permission requests
64
-
/// from the platform (e.g. on iOS the plugin won’t ask for the `NSPhotoLibraryUsageDescription` permission).
65
-
///
66
61
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
67
62
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
68
63
/// Defaults to [CameraDevice.rear]. Note that Android has no documented parameter for an intent to specify if
@@ -78,7 +73,6 @@ abstract class ImagePickerPlatform extends PlatformInterface {
throwUnimplementedError('pickImage() has not been implemented.');
@@ -170,11 +164,6 @@ abstract class ImagePickerPlatform extends PlatformInterface {
170
164
/// image types such as JPEG. If compression is not supported for the image that is picked,
171
165
/// a warning message will be logged.
172
166
///
173
-
/// `forceFullMetadata` defaults to `true`, so the plugin tries to get the full image metadata which may require
174
-
/// extra permission requests on certain platforms.
175
-
/// If `forceFullMetadata` is set to `false`, the plugin fetches the image in a way that reduces permission requests
176
-
/// from the platform (e.g. on iOS the plugin won’t ask for the `NSPhotoLibraryUsageDescription` permission).
177
-
///
178
167
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
179
168
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
180
169
/// Defaults to [CameraDevice.rear]. Note that Android has no documented parameter for an intent to specify if
@@ -190,7 +179,6 @@ abstract class ImagePickerPlatform extends PlatformInterface {
0 commit comments