r/FlutterDev • u/One_Yogurtcloset_910 • Aug 31 '26
Plugin I built an Adaptive Image Picker for Flutter: Zero-permission PhotoPicker + Pure-Dart Cropping & Binary Search Compression
Hey Flutter community! 👋
In almost every production Flutter app, handling image picking usually requires stringing together 2–3 different packages (image_picker, image_cropper, and a compression plugin), managing invasive storage permissions on Android/iOS, and dealing with native build issues (like UCrop pod conflicts on iOS/Android).
To solve this, I built adaptive_image_picker — a lightweight, unified, zero-permission media pipeline.
✨ Key Features:
- 🔒 Zero Permissions by Default: Native integration with Android 13+ Photo Picker (
PickVisualMedia) and iOS 14+PHPickerViewController. NoREAD_EXTERNAL_STORAGEneeded. - ✂️ Pure-Dart Cropper: No native UI wrappers (like UCrop). Supports freeform cropping, aspect ratio presets, 90° rotation, horizontal/vertical flipping, and antialiased circular avatar masking.
- ⚡ Binary Search Target-Size Compression: Automatically compresses images to guarantee a file size ≤≤
maxBytes(e.g. max 500 KB) without manual guessing. - 🎨 Adaptive Native UI: Automatically renders Material 3 bottom sheets on Android, Cupertino action sheets on iOS, and modal dialogs on Web/Desktop.
- 🌐 Full Web & WASM Compatibility: Zero native desktop/web crashes.
- 🔗 Direct URL Import: Built-in network downloader integrated right into the picker pipeline.
📦 Pub.dev: https://pub.dev/packages/adaptive_image_picker
💻 GitHub: https://github.com/Karan8686/adaptive_image_picker
Would love your feedback, feature suggestions, or issue reports!
4
u/ich3ckmat3 Aug 31 '26
Any visual stuff should include screenshots
1
u/zemega Aug 31 '26
I'm sold on this idea. Going to test. What about Windows support?
1
u/ByronScottJones Aug 31 '26
Why is this github repo already deleted?
1
u/spicxzy_1 Aug 31 '26
Repo?
1
u/[deleted] Sep 01 '26
[removed] — view removed comment