talira

image_picker

Flutter plugin for picking photos and videos from the gallery or the camera

open sourceBSD-3-Clausefree

image_picker is the Flutter team's plugin for picking images and videos from the device's photo library and taking new pictures or videos with the camera, one or several at a time. It uses the system pickers (PHPicker on iOS, the standard intents on Android), and runs on Android, iOS, Linux, macOS, the web and Windows, with limited support on desktop, where taking photos needs a camera delegate the app provides. On Android, apps must recover a picked file with retrieveLostData when the system kills them while the picker is open. It's part of the flutter/packages repository and published on pub.dev by flutter.dev.

Problems it solves

  • let users choose a photo from their gallery in my Flutter app
  • take a picture with the phone camera from a Flutter app
  • pick several images or a video at once in Flutter

Features

  • Picks photos and videos from the device's library in Flutter
  • Takes new pictures and videos with the camera
  • Pick one or several items
  • Android, iOS, web and limited desktop support

Limitations

  • Desktop support is limited: taking a photo with the camera isn't supported on Linux, macOS or Windows unless the app provides its own camera delegate1
  • On Android the system may kill the app while the picker is open, and the picked file must then be recovered with retrieveLostData1

Alternatives

The same job

These do what image_picker does.

  1. photo_manager Flutter plugin for reading and managing the device's photo, video and audio library
  2. camera Flutter plugin for the device cameras
  3. image_cropper Flutter plugin for cropping and rotating images on Android, iOS and the web
  4. Flutter Packages Flutter's first-party packages and plugins, maintained by the Flutter team
  5. file_picker Native file picker for Flutter apps

Compare image_picker with the top 3