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
{{ message }}
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: packages/image_picker/image_picker_windows/README.md
+1-21Lines changed: 1 addition & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,24 +13,4 @@ The argument `maxDuration` is not supported on Windows.
13
13
### Import the package
14
14
15
15
This package is not yet [endorsed](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin), which means you need to add
16
-
not only the `image_picker`, as well as the `image_picker_windows`.
17
-
18
-
### Use the plugin
19
-
20
-
You should be able to use `package:image_picker`_almost_ as normal, since this package is not fully featured yet.
21
-
22
-
If you want to use the path directly, your code would need look like this:
23
-
24
-
```dart
25
-
...
26
-
Image.file(File(pickedFile.path));
27
-
...
28
-
```
29
-
30
-
Or, using bytes:
31
-
32
-
```dart
33
-
...
34
-
Image.memory(await pickedFile.readAsBytes())
35
-
...
36
-
```
16
+
not only the `image_picker`, as well as the `image_picker_windows`.
// Note that the `maxWidth`, `maxHeight` and `imageQuality` arguments are not supported on the Windows. If any of these arguments is supplied, it'll be silently ignored by the Windows version of the plugin.
47
+
// Note that the `maxWidth`, `maxHeight` and `imageQuality` arguments are
48
+
// not supported on the Windows. If any of these arguments is supplied,
49
+
// it'll be silently ignored by the Windows version of the plugin.
45
50
@override
46
51
Future<PickedFile?> pickImage({
47
52
requiredImageSource source,
@@ -62,7 +67,10 @@ class ImagePickerWindows extends ImagePickerPlatform {
62
67
returnnull;
63
68
}
64
69
65
-
// Note that the `source`, `preferredCameraDevice`, and `maxDuration` arguments are not supported on Windows. If any of these arguments is supplied, it'll be silently ignored by the Windows version of the plugin.
70
+
// Note that the `source`, `preferredCameraDevice`, and `maxDuration`
71
+
// arguments are not supported on Windows. If any of these arguments is
72
+
// supplied, it'll be silently ignored by the Windows version of the
73
+
// plugin.
66
74
@override
67
75
Future<PickedFile?> pickVideo({
68
76
requiredImageSource source,
@@ -79,7 +87,10 @@ class ImagePickerWindows extends ImagePickerPlatform {
79
87
returnnull;
80
88
}
81
89
82
-
// Note that the `source`, `maxWidth`, `maxHeight`, `imageQuality`, and `preferredCameraDevice` arguments are not supported on Windows. If any of these arguments is supplied, it'll be silently ignored by the Windows version of the plugin.
90
+
// Note that the `source`, `maxWidth`, `maxHeight`, `imageQuality`, and
91
+
// `preferredCameraDevice` arguments are not supported on Windows. If
92
+
// any of these arguments is supplied, it'll be silently ignored by the
93
+
// Windows version of the plugin.
83
94
@override
84
95
Future<XFile?> getImage({
85
96
requiredImageSource source,
@@ -95,7 +106,10 @@ class ImagePickerWindows extends ImagePickerPlatform {
95
106
return file;
96
107
}
97
108
98
-
// Note that the `source`, `preferredCameraDevice`, and `maxDuration` arguments are not supported on Windows. If any of these arguments is supplied, it'll be silently ignored by the Windows version of the plugin.
109
+
// Note that the `source`, `preferredCameraDevice`, and `maxDuration`
110
+
// arguments are not supported on Windows. If any of these arguments
111
+
// is supplied, it'll be silently ignored by the Windows version of
112
+
// the plugin.
99
113
@override
100
114
Future<XFile?> getVideo({
101
115
requiredImageSource source,
@@ -109,7 +123,9 @@ class ImagePickerWindows extends ImagePickerPlatform {
109
123
return file;
110
124
}
111
125
112
-
// Note that the `maxWidth`, `maxHeight`, and `imageQuality` arguments are not supported on Windows. If any of these arguments is supplied, it'll be silently ignored by the Windows version of the plugin.
126
+
// Note that the `maxWidth`, `maxHeight`, and `imageQuality` arguments are
127
+
// not supported on Windows. If any of these arguments is supplied, it'll
128
+
// be silently ignored by the Windows version of the plugin.
0 commit comments