Skip to content
pubscout

photo_viewer

1.0.0, released 8 months ago by kuma.dev

Flutter image viewer library with pinch-zoom, double-tap zoom, vertical dismiss, and hero animations.

$ flutter pub add photo_viewer
Source repository

What it does

Provides a lightweight photo viewing widget that supports pinch-to-zoom, double-tap zoom, swipe-to-dismiss, multi-image pagination, and hero animations. It works with assets, network images, and file paths.

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

Use it when

  • You need a full-screen image viewer with pinch-to-zoom and swipe-to-dismiss.
  • You are building a photo gallery or image preview experience with pagination.

Skip it when

  • You need complex image editing features like cropping or filters.
  • You are building a custom canvas drawing app.

Strengths

  • Supports pinch-to-zoom, double-tap zoom, and swipe-to-dismiss out of the box.
  • Handles multiple image sources including assets, network, and files.
  • Includes custom overlay support and hero animation transitions.

Weaknesses

  • Limited to viewing and interacting with photos, lacks editing capabilities.
  • Relies on standard Flutter image handling and cached_network_image.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
PhotoViewerImage(
  imageUrl: 'https://example.com/photo.jpg',
)

Alternatives

Packages that do the same job and could replace photo_viewer.

  • photo_view

    A well-established and widely used alternative for zoomable images and galleries in Flutter.

Works with

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