You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify media selection, cropping, and camera functionality in your Flutter app. Choose images/videos from the library, crop images, and capture new photos/videos with ease.
Features:
Select images/videos from the library
Take a photo or record a video
Open image cropper
Support crop multiple images
Support quality compression for selected images
Support gif selection
iOS
Android
Installation
$ flutter pub add hl_image_picker
Note: If you are developing an application exclusively for either Android or iOS, you don't need to install hl_image_picker. Instead, you can choose one of the following packages based on your target platform:
To use the plugin, you need to perform the following setup steps:
iOS
Add Privacy Description to your ios/Runner/Info.plist file.
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library</string>
<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera</string>
<!-- Include this description only if your plugin requires recording videos and needs access to the device's microphone. -->
<key>NSMicrophoneUsageDescription</key>
<string>This app requires access to the microphone</string>
iOS 14 You can suppress the automatic prompting from the system by setting PHPhotoLibraryPreventAutomaticLimitedAccessAlert to yes in Info.plist
<!-- Android 12 and lower -->
<uses-permissionandroid:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Targeting Android 13 or higher -->
<uses-permissionandroid:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permissionandroid:name="android.permission.READ_MEDIA_VIDEO" />
<!-- Request the camera permission -->
<uses-featureandroid:name="android.hardware.camera"android:required="false" />
<uses-permissionandroid:name="android.permission.CAMERA" />
<!-- Add this permission if you need to record videos -->
<uses-permissionandroid:name="android.permission.RECORD_AUDIO" />
A list of string IDs representing the initially selected images or videos from the library. This allows users to pre-select items before opening the picker.
Simplify media selection, cropping, and camera functionality in your Flutter app. Choose images/videos from the library, crop images, and capture new photos/videos with ease.