Skip to content
pubscout

interactive_viewer_2

0.1.0, released a year ago by henrisauer.dev

A Flutter InteractiveViewer replacement with scrollbars and double-tap zoom.

WASM-ready
$ flutter pub add interactive_viewer_2
Source repository

What it does

InteractiveViewer2 provides a drop-in replacement for Flutter's default InteractiveViewer. It supports mouse wheel zoom, scrollbars, double-tap zoom, and improved handling for widgets larger than the viewport.

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

Use it when

  • You need scrollbars inside an interactive or zoomable viewport
  • You want desktop mouse wheel zoom support out of the box
  • You need better handling for widgets that exceed viewport size

Skip it when

  • You require the exact default behavior of Flutter's built-in InteractiveViewer with constrained property enabled by default

Strengths

  • Adds scrollbar support to zoomable content
  • Supports mouse wheel and double-tap zoom gestures
  • Allows creating custom interactive widgets via provided base classes

Weaknesses

  • Constrained property behaves differently from the standard InteractiveViewer by default

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
InteractiveViewer2(
  child: YourWidget(),
)

Alternatives

Packages that do the same job and could replace interactive_viewer_2.

Works with

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