Skip to content
pubscout

pinch_zoom_release_unzoom

2.0.0, released 2 years ago by turingdeal.com

A widget that provides Instagram-like pinch-to-zoom that resets size when released.

WASM-ready
$ flutter pub add pinch_zoom_release_unzoom
Source repository

What it does

It wraps any widget or image in an interactive viewer enabling pinch-to-zoom over the screen. Once the interaction ends, it smoothly animates the widget back to its original size.

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

Use it when

  • You want Instagram-like photo zoom behavior in your Flutter app.
  • You need a pinch-to-zoom experience that automatically resets after release.

Skip it when

  • You need persistent zooming where the widget stays zoomed in after the user lets go.
  • You require complex map or pan-and-scan functionalities that do not reset.

Strengths

  • Provides a smooth return-to-original-size animation upon release.
  • Supports custom parameters like minScale, maxScale, overlay colors, and touch gesture restrictions.

Weaknesses

  • Requires manual gesture coordination when nested inside scrollable widgets.
  • Not documented for standalone persistent zoom requirements.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
PinchZoomReleaseUnzoomWidget(
  child: Image.network(
    'https://storage.googleapis.com/cms-storage-bucket/70760bf1e88b184bb1bc.png'
  ),
)

Alternatives

Packages that do the same job and could replace pinch_zoom_release_unzoom.