adaptive_media_picker
2.0.0, released 4 weeks ago by an unverified publisher
Flutter package to pick images or videos with permissions, source sheet, cropping and validation on all platforms.
What it does
Provides a single API that handles permission requests, lets the user choose camera or gallery, optionally crops the media, and validates size and MIME type. It works on Android, iOS, Web, macOS, Windows and Linux and returns typed results instead of throwing exceptions.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a unified media picker with built‑in permission handling and cropping
- You want validation of file size or type before upload
- You target multiple platforms including Web and desktop
Skip it when
- You only need a simple file picker and want minimal dependencies
- You require a fully custom UI for the picker flow
Strengths
- Cross‑platform support including Web and desktop
- Built‑in permission dialogs and source sheet
- Cropping available on every platform, including circle crop
- File‑size and MIME‑type validation out of the box
Weaknesses
- Adds several native dependencies (image_cropper, smart_permission, etc.)
- Larger bundle size compared to using image_picker alone
- Customization of the UI beyond provided options is limited
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 7
Add camera and photo library permissions to AndroidManifest and iOS Info.plist, configure image_cropper native libraries if needed, and follow the package's platform‑setup guide for Web/WASM.
final picker = AdaptiveMediaPicker();
final result = await picker.pickImage(context: context);
if (result.item != null) {
final bytes = await result.item!.readAsBytes();
}Alternatives
Packages that do the same job and could replace adaptive_media_picker.
- image_picker_ios
iOS implementation of the image_picker plugin.
81Compare - image_picker_windows
Windows implementation of image_picker for selecting images and videos
70Compare - image_picker_macos
macOS platform implementation of the image_picker plugin
69Compare - universal_image
Unified widget to display any image source (asset, network, file, SVG, base64, bytes, icon) across platforms.
59Compare
Works with
Packages commonly used together with adaptive_media_picker: ones it builds on, ones built on it, and its own family.
- image_pickeradaptive_media_picker depends on itFlutter plugin for selecting images/videos from the gallery and capturing new ones via camera.
- image_cropperadaptive_media_picker depends on itA Flutter plugin for Android, iOS and Web supports cropping images
- photo_manageradaptive_media_picker depends on itManage and retrieve photo, video, and audio assets on Android, iOS, macOS, and OpenHarmony.
- crop_your_imageadaptive_media_picker depends on itFlutter widget to embed customizable image cropping UI anywhere in your widget tree.
- image_picker_androidadaptive_media_picker depends on itAndroid implementation of the image_picker plugin for selecting photos and videos.
- smart_permissionadaptive_media_picker depends on itFlutter runtime permissions made easy with adaptive dialogs and permission gates.