文件最后提交记录最后更新时间
Update repo for 3.32 stable (#9311) Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.32 stable release (except the first one, as the stable roller has already landed).11 个月前
[image_picker] getMedia platform implementations (#4175) Adds getMedia and getMultipleMedia methods to all image_picker platforms. ~~waiting on https://github.com/flutter/packages/pull/4174~~ precursor to https://github.com/flutter/packages/pull/3892 part of https://github.com/flutter/flutter/issues/89159 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.) - [x] I signed the [CLA]. - [x] The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences] - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes]. - [x] I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style]. - [x] I updated/added relevant documentation (doc comments with ///). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [relevant style guides]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md#style [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat [pub versioning philosophy]: https://dart.dev/tools/pub/versioning [exempt from version changes]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version-and-changelog-updates [following repository CHANGELOG style]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#changelog-style [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests2 年前
bump mockito across repo to 5.4.4 (#5794) Bump mockito from 5.4.3 -> 5.4.4 via tool_runner2 年前
[image_picker] Add desktop support - implementations (#4172) Platform implementation portion of https://github.com/flutter/packages/pull/3882 Updates the Windows implementation to use the new base class for camera delegation, and creates new macOS and Linux implementations that are near-duplicates. These are separate packages, rather than a single shared package, because it's likely that they will diverge over time (e.g., the TODO for macOS to use a system image picker control on newer versions of macOS), and the amount of code that could be shared is minimal anyway. Part of https://github.com/flutter/flutter/issues/102115 Part of https://github.com/flutter/flutter/issues/102320 Part of https://github.com/flutter/flutter/issues/851002 年前
Update repo for 3.32 stable (#9311) Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.32 stable release (except the first one, as the stable roller has already landed).11 个月前
[image_picker] Add desktop support - implementations (#4172) Platform implementation portion of https://github.com/flutter/packages/pull/3882 Updates the Windows implementation to use the new base class for camera delegation, and creates new macOS and Linux implementations that are near-duplicates. These are separate packages, rather than a single shared package, because it's likely that they will diverge over time (e.g., the TODO for macOS to use a system image picker control on newer versions of macOS), and the amount of code that could be shared is minimal anyway. Part of https://github.com/flutter/flutter/issues/102115 Part of https://github.com/flutter/flutter/issues/102320 Part of https://github.com/flutter/flutter/issues/851002 年前
[image_picker] Reference alternate macOS implementations (#8487) Since we don't currently plan to fix https://github.com/flutter/flutter/issues/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 年前
Update repo for 3.32 stable (#9311) Does all of the steps from https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md for the 3.32 stable release (except the first one, as the stable roller has already landed).11 个月前
README.md

image_picker_macos

A macOS implementation of image_picker.

Limitations

ImageSource.camera is not supported unless a cameraDelegate is set.

pickImage()

The arguments maxWidth, maxHeight, and imageQuality are not currently supported.

pickVideo()

The argument maxDuration is not currently supported.

Usage

Import the package

This package is endorsed, which means you can simply use image_picker normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Entitlements

This package is currently implemented using file_selector, so you will need to add a read-only file acces entitlement:

    <key>com.apple.security.files.user-selected.read-only</key>
    <true/>

Alternatives

If you would prefer an implementation that uses the dedicated photo picker UI available in newer versions of macOS, which is more similar to the iOS experience, you may want to consider using an alternate, unendorsed implementation built by the community.