Skip to content
pubscout

zoom_widget

2.0.1, released 4 years ago by nairda.com.mx

A Flutter widget to create a customizable canvas with zoom and scroll capabilities.

WASM-ready
$ flutter pub add zoom_widget
Source repository

What it does

Provides a Zoom widget that wraps any child to allow users to zoom in and out, scroll across a modifiable canvas size, and listen to position or scale updates.

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

Use it when

  • You need to allow users to zoom in on a canvas, image, or custom UI layout.
  • You require customizable scrollbars, background colors, and zoom sensitivity for a contained view.

Skip it when

  • You are building a standard scrollable list or grid where zooming is not required.

Strengths

  • Supports customizable max zoom width and height, scrollbars, and background colors.
  • Provides callbacks for position and scale updates.
  • Includes double-tap zoom support.

Weaknesses

  • Relies on specific custom widgets instead of standard interactive viewer paradigms if advanced gesture control is needed.
  • Some older configuration properties are deprecated.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
Zoom(
  maxZoomWidth: 1800,
  maxZoomHeight: 1800,
  child: Center(
    child: Text("Happy zoom!!"),
  ),
);

Alternatives

Packages that do the same job and could replace zoom_widget.

Works with

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