Image Picker Adapter
Component Detail
Infrastructure
low complexity
mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Flutter platform adapter wrapping the image_picker package, providing a unified interface for camera capture and gallery selection across iOS and Android. Abstracts platform-specific permission dialogs and returns normalised file objects with path, size, and MIME type for downstream processing.
image-picker-adapter
Responsibilities
- Abstract the image_picker package behind a stable internal interface
- Handle iOS and Android camera permission request flows
- Handle iOS Photo Library and Android storage permission flows
- Return normalised file objects with path, size, and MIME type
- Support both single-image and multi-image gallery selection modes
Interfaces
captureFromCamera(options)
pickFromGallery(allowMultiple)
requestCameraPermission()
requestGalleryPermission()
checkPermission(permissionType)
getNormalizedFile(pickedFile)
getSupportedMimeTypes()