Skip to content
pubscout

photo_gallery

2.2.1, released 3 years ago by an unverified publisher

A Flutter plugin to list, retrieve, and display images and videos from the native mobile gallery.

$ flutter pub add photo_gallery
Source repository

What it does

It provides APIs to list albums, fetch media items, obtain files, thumbnails, and full‑size images from the device's photo library. It also includes widgets for displaying thumbnails and full images.

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

Use it when

  • You need to access the device's photo gallery for browsing or selecting media.
  • You want platform‑specific thumbnail generation and file access without building native code yourself.

Skip it when

  • You only need to pick a single image or video (use image_picker).
  • You require cross‑platform web support (this plugin is Android/iOS only).

Strengths

  • Comprehensive album and media listing APIs
  • Built‑in thumbnail providers for efficient image display
  • Supports both images and videos

Weaknesses

  • Requires native permission configuration on both platforms
  • No web or desktop support
  • Limited to gallery access; no camera capture

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Add NSPhotoLibraryUsageDescription to iOS Info.plist; add READ_EXTERNAL_STORAGE, READ_MEDIA_IMAGES, READ_MEDIA_VIDEO permissions to AndroidManifest.xml; no build_runner needed.

final albums = await PhotoGallery.listAlbums();
final firstAlbum = albums.first;
final mediaPage = await firstAlbum.listMedia();
final firstMedium = mediaPage.items.first;
final file = await firstMedium.getFile();

Alternatives

Packages that do the same job and could replace photo_gallery.

  • image_picker

    Simpler API for picking a single image or video without album browsing.

  • photo_view

    Provides advanced image zooming and panning for displaying full‑size images.