image_picker_macos
0.2.2+1, released a year ago by flutter.dev
macOS platform implementation of the image_picker plugin
What it does
Provides macOS platform-specific implementation for picking images and videos using file selection. It works as an endorsed federated plugin for image_picker.
AI-written summary of version 0.2.2+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter application for macOS that needs to pick images or videos.
- You are using the main image_picker package and need macOS desktop support.
Skip it when
- You need ImageSource.camera support without setting a custom cameraDelegate.
- You require max width, max height, or image quality adjustments on macOS currently.
Strengths
- Endorsed federated plugin that integrates automatically with image_picker.
- Enables file picking for images and videos on macOS.
Weaknesses
- Certain arguments like maxWidth, maxHeight, imageQuality, and maxDuration are not currently supported.
- Requires manual addition of user-selected read-only entitlements in macOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add the read-only file access entitlement (com.apple.security.files.user-selected.read-only) to your macOS entitlements configuration.
// This package is endorsed and used automatically via image_picker.
// To use directly if needed:
import 'package:image_picker_macos/image_picker_macos();Alternatives
Packages that do the same job and could replace image_picker_macos.
- adaptive_media_picker
Flutter package to pick images or videos with permissions, source sheet, cropping and validation on all platforms.
66Compare - image
Pure Dart library to load, manipulate, encode, and decode various image formats.
96Compare - image_cropper
A Flutter plugin for Android, iOS and Web supports cropping images
84Compare - network_to_file_image
Combines NetworkImage and FileImage to cache network images onto the local file system.
77Compare
Works with
Packages commonly used together with image_picker_macos: ones it builds on, ones built on it, and its own family.
- file_selector_macosimage_picker_macos depends on itmacOS implementation of the file_selector plugin
- image_picker_for_webSame familyWeb implementation of image_picker that lets users select images or videos via the browser file picker.
- image_picker_windowsSame familyWindows implementation of image_picker for selecting images and videos
- file_selectorSame familyFlutter plugin for opening, saving, and selecting directories with native file dialogs
- image_picker_iosSame familyiOS implementation of the image_picker plugin.
- image_picker_androidSame familyAndroid implementation of the image_picker plugin for selecting photos and videos.
- image_pickerBuilt on image_picker_macosFlutter plugin for selecting images/videos from the gallery and capturing new ones via camera.