Images Picker plugin for Flutter

pub packagelicense

A Flutter plugin for iOS and Android for picking images from the image library, and taking new pictures with the camera.

Installation

First, add flutter_images_picker as a dependency in your pubspec.yaml file.

iOS

This plugin requires iOS 14.0 or higher.

Starting with version 0.1.4 the iOS implementation uses ImagePicker to pick (multiple) images on iOS 14 or higher.

Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

  • NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
  • NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
  • NSMicrophoneUsageDescription - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor.

Android

Starting with version 0.1.4 the Android implementation support to pick (multiple) images on Android 5.0 or higher.

No configuration required - the plugin should work out of the box.

Note: Images and videos picked using the camera are saved to your application's local cache, and should therefore be expected to only be around temporarily. If you require your picked image to be stored permanently, it is your responsibility to move it to a more permanent location.

Basic usage

void takeImage(BuildContext context) async {
  List<Uri?> images  = await FlutterImagesPicker.pickImages(maxImages: 5);
  Navigator.of(context).pop();
}

License

The Flutter images picker project is available for free use, as described by the LICENSE (GPLv3).