Skip to content

Commit ebb373e

Browse files
[image_picker] Reference alternate macOS implementations (#8487)
Since we don't currently plan to fix flutter/flutter#125829 in our implementation, and there is now a community implementation that does, reference that in the README and provide a link to quickly locate alternate implementations. Also fixes a copy-paste mistake that was referencing the wrong app-facing plugin in the instructions.
1 parent 61aeda5 commit ebb373e

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

packages/image_picker/image_picker_macos/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.2.1+2
22

3+
* Updates README to reference alternate implementations.
34
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
45

56
## 0.2.1+1

packages/image_picker/image_picker_macos/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ A macOS implementation of [`image_picker`][1].
77
`ImageSource.camera` is not supported unless a `cameraDelegate` is set.
88

99
### pickImage()
10+
1011
The arguments `maxWidth`, `maxHeight`, and `imageQuality` are not currently supported.
1112

1213
### pickVideo()
14+
1315
The argument `maxDuration` is not currently supported.
1416

1517
## Usage
1618

1719
### Import the package
1820

19-
This package is [endorsed][2], which means you can simply use `file_selector`
21+
This package is [endorsed][2], which means you can simply use `image_picker`
2022
normally. This package will be automatically included in your app when you do,
2123
so you do not need to add it to your `pubspec.yaml`.
2224

@@ -32,7 +34,15 @@ need to add a read-only file acces [entitlement][4]:
3234
<true/>
3335
```
3436

37+
## Alternatives
38+
39+
If you would prefer an implementation that uses the dedicated photo picker UI
40+
available in newer versions of macOS, which is more similar to the iOS
41+
experience, you may want to consider using
42+
[an alternate, unendorsed implementation built by the community][5].
43+
3544
[1]: https://pub.dev/packages/image_picker
3645
[2]: https://flutter.dev/to/endorsed-federated-plugin
3746
[3]: https://pub.dev/packages/file_selector
3847
[4]: https://flutter.dev/to/macos-entitlements
48+
[5]: https://pub.dev/packages?q=topic%3Aimage-picker+platform%3Amacos

packages/image_picker/image_picker_macos/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: image_picker_macos
22
description: macOS platform implementation of image_picker
33
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_macos
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
5-
version: 0.2.1+1
5+
version: 0.2.1+2
66

77
environment:
88
sdk: ^3.4.0

0 commit comments

Comments
 (0)