Skip to content
pubscout

interactiveviewer_gallery

0.6.0, released 5 years ago by an unverified publisher

Image and video preview gallery supporting zoom, drag, and hero transitions

WASM-ready
$ flutter pub add interactiveviewer_gallery
Source repository

What it does

Provides a gallery component for displaying images and videos with support for two-finger zoom, double-click to zoom, left and right swiping, gesture-based dismissing, and automatic video pausing.

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

Use it when

  • You need a full-screen image and video preview gallery with zoom and pan capabilities.
  • You want to support smooth Hero transitions from a grid view to a full-screen gallery.

Skip it when

  • You only need a simple inline image viewer without full-screen gallery capabilities.
  • You require a complex media player with custom video controls.

Strengths

  • Supports both image and video previews in a single gallery.
  • Built-in gestures like pinch-to-zoom, double-click to zoom, and gesture back navigation.
  • Automatically pauses videos when they lose focus.

Weaknesses

  • Limited documentation beyond the basic README and example app.
  • Dependent on specific Flutter versions (requires Flutter 1.20.0 or higher).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Requires Flutter 1.20.0 or higher since it is based on InteractiveViewer.

Navigator.of(context).push(
  HeroDialogRoute<void>(
    builder: (BuildContext context) => InteractiveviewerGallery<DemoSourceEntity>(
        sources: sourceList,
        initIndex: 0,
        itemBuilder: itemBuilder,
    ),
  ),
);

Alternatives

Packages that do the same job and could replace interactiveviewer_gallery.

  • photo_view

    Pick photo_view if you need a dedicated, highly customizable photo viewing and zooming widget without the built-in multi-media gallery setup.