Skip to content
pubscout

image_picker

1.2.4, released 6 weeks ago by flutter.dev

Flutter plugin for selecting images/videos from the gallery and capturing new ones via camera.

WASM-readyRock solid
$ flutter pub add image_picker
Source repository

What it does

Provides APIs to pick single or multiple images, videos, or mixed media from the device's library or take new photos and videos using the camera. It returns cross-platform XFile objects representing the selected media.

AI-written summary of version 1.2.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need users to select existing photos or videos from their device gallery.
  • Your app requires taking new pictures or recording videos using the device camera.
  • You need cross-platform support for picking media across mobile, web, and desktop.

Skip it when

  • You need full in-app custom camera viewfinders and advanced hardware controls instead of a simple photo-capture intent.
  • You require complex image editing, filtering, or heavy image manipulation out of the box.

Strengths

  • Supports multiple platform implementations (Android, iOS, Web, Windows, macOS, Linux).
  • Handles lost data recovery on Android when low-memory kills the application.
  • Uses modern native pickers such as PHPicker on iOS and Android Photo Picker on newer versions.

Weaknesses

  • Desktop platforms have limited support and require a third-party camera delegate for capturing photos.
  • Android low-memory process death requires manual implementation of retrieveLostData checks.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
7

Requires iOS Info.plist permission descriptions for photo library, camera, and microphone. macOS requires user-selected files read-only entitlement. Android requires no configuration out of the box.

final picker = ImagePicker();
final XFile? image = await picker.pickImage(source: ImageSource.gallery);

Alternatives

Packages that do the same job and could replace image_picker.

  • image

    If you need to decode, manipulate, and convert image formats directly in Dart code.

  • extended_image

    If you need advanced image loading, zooming, panning, and cropping widgets.

Works with

Packages commonly used together with image_picker: ones it builds on, ones built on it, and its own family.