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
Copy file name to clipboardExpand all lines: packages/image_picker/image_picker_platform_interface/lib/src/platform_interface/image_picker_platform.dart
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,6 @@ abstract class ImagePickerPlatform extends PlatformInterface {
37
37
_instance = instance;
38
38
}
39
39
40
-
// Next version of the API.
41
-
42
40
/// Returns a [PickedFile] with the image that was picked.
43
41
///
44
42
/// The `source` argument controls where the image comes from. This can
@@ -67,6 +65,7 @@ abstract class ImagePickerPlatform extends PlatformInterface {
67
65
/// in this call. You can then call [retrieveLostData] when your app relaunches to retrieve the lost data.
68
66
///
69
67
/// If no images were picked, the return value is null.
68
+
@Deprecated('Use getImageFromSource instead.')
70
69
Future<PickedFile?> pickImage({
71
70
requiredImageSource source,
72
71
double? maxWidth,
@@ -95,6 +94,7 @@ abstract class ImagePickerPlatform extends PlatformInterface {
95
94
/// a warning message will be logged.
96
95
///
97
96
/// If no images were picked, the return value is null.
@@ -141,12 +142,11 @@ abstract class ImagePickerPlatform extends PlatformInterface {
141
142
/// See also:
142
143
/// * [LostData], for what's included in the response.
143
144
/// * [Android Activity Lifecycle](https://developer.android.com/reference/android/app/Activity.html), for more information on MainActivity destruction.
145
+
@Deprecated('Use getLostData instead.')
144
146
Future<LostData> retrieveLostData() {
145
147
throwUnimplementedError('retrieveLostData() has not been implemented.');
146
148
}
147
149
148
-
/// This method is deprecated in favor of [getImageFromSource] and will be removed in a future update.
149
-
///
150
150
/// Returns an [XFile] with the image that was picked.
151
151
///
152
152
/// The `source` argument controls where the image comes from. This can
@@ -175,6 +175,7 @@ abstract class ImagePickerPlatform extends PlatformInterface {
175
175
/// in this call. You can then call [getLostData] when your app relaunches to retrieve the lost data.
176
176
///
177
177
/// If no images were picked, the return value is null.
178
+
@Deprecated('Use getImageFromSource instead.')
178
179
Future<XFile?> getImage({
179
180
requiredImageSource source,
180
181
double? maxWidth,
@@ -185,8 +186,6 @@ abstract class ImagePickerPlatform extends PlatformInterface {
185
186
throwUnimplementedError('getImage() has not been implemented.');
186
187
}
187
188
188
-
/// This method is deprecated in favor of [getMultiImageWithOptions] and will be removed in a future update.
189
-
///
190
189
/// Returns a [List<XFile>] with the images that were picked.
191
190
///
192
191
/// The images come from the [ImageSource.gallery].
@@ -205,6 +204,7 @@ abstract class ImagePickerPlatform extends PlatformInterface {
205
204
/// a warning message will be logged.
206
205
///
207
206
/// If no images were picked, the return value is null.
0 commit comments