multi_image_picker 1.0.1 multi_image_picker: ^1.0.1 copied to clipboard
Flutter plugin that allows you to display multi image picker on iOS and Android.
multi_image_picker #
Flutter plugin that allows you to display multi image picker on iOS and Android.
iOS #
For the iOS picker the plugin uses BSImagePicker
Android #
For the Android picker the plugin uses Matisse
Usage #
First add the plugin to your project
dependencies:
flutter:
sdk: flutter
multi_image_picker: 1.0.1
iOS #
You need to add those strings to your Info.plist file in order the plugin to work:
<key>NSPhotoLibraryUsageDescription</key>
<string>Example usage description</string>
<key>NSCameraUsageDescription</key>
<string>Example usage description</string>
Android #
You need to request those permissions in AndroidManifest.xml in order the plugin to work:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
For example code usage, please see here
API #
pickImages(maxImages: int) #
maxImages
Type: int
Maximum allowed images to be selected.
TODO #
- ❌ Add support for more plugin specific options for iOS and Android, that allows more customization
- ❌ Allow choosing videos
Related #
- image_picker - Official Flutter image picker plugin
License #
MIT © Radoslav Vitanov