Skip to content

Commit 163e7c2

Browse files
authored
[image_picker_platform_interface] Pass Uri to package:http APIs (flutter#3309)
This is in preparation for dart-lang/http#375
1 parent 6870b08 commit 163e7c2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/image_picker/image_picker_platform_interface/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.4
2+
3+
* Pass `Uri`s to `package:http` methods, instead of strings, in preparation for a major version update in `http`.
4+
15
## 1.1.3
26

37
* Update documentation of `pickImage()` regarding HEIC images.

packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/html.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class PickedFile extends PickedFileBase {
2424
if (_initBytes != null) {
2525
return Future.value(UnmodifiableUint8ListView(_initBytes));
2626
}
27-
return http.readBytes(path);
27+
return http.readBytes(Uri.parse(path));
2828
}
2929

3030
@override

packages/image_picker/image_picker_platform_interface/pubspec.yaml

+1-1
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.3
6+
version: 1.1.4
77

88
dependencies:
99
flutter:

0 commit comments

Comments
 (0)