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
/// Returns a [PickedFile] with the image that was picked.
34
+
///
35
+
/// The `source` argument controls where the image comes from. This can
36
+
/// be either [ImageSource.camera] or [ImageSource.gallery].
37
+
///
38
+
/// Note that the `maxWidth`, `maxHeight` and `imageQuality` arguments are not supported on the web. If any of these arguments is supplied, it'll be silently ignored by the web version of the plugin.
39
+
///
40
+
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
41
+
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
42
+
/// Defaults to [CameraDevice.rear].
43
+
///
44
+
/// If no images were picked, the return value is null.
33
45
@override
34
46
Future<PickedFile> pickImage({
35
47
requiredImageSource source,
@@ -42,6 +54,18 @@ class ImagePickerPlugin extends ImagePickerPlatform {
/// Returns a [PickedFile] containing the video that was picked.
58
+
///
59
+
/// The [source] argument controls where the video comes from. This can
60
+
/// be either [ImageSource.camera] or [ImageSource.gallery].
61
+
///
62
+
/// Note that the `maxDuration` argument is not supported on the web. If the argument is supplied, it'll be silently ignored by the web version of the plugin.
63
+
///
64
+
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
65
+
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.
66
+
/// Defaults to [CameraDevice.rear].
67
+
///
68
+
/// If no images were picked, the return value is null.
0 commit comments