zoom_pinch_overlay
1.4.3, released 3 years ago by samuelong.me
An Instagram-style pinch and zoom widget that appears globally via an OverlayEntry.
What it does
Provides a ZoomOverlay widget that lets users pinch, zoom, and drag any child widget so that it appears on top of all other elements on the screen. It animates back to its original position when the zoom stops.
AI-written summary of version 1.4.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want Instagram-style pinch and zoom functionality for images or widgets.
- You need zoomed content to render on top of all other widgets using an overlay.
- You want a pure Dart implementation supporting all Flutter platforms.
Skip it when
- You need complex map navigation or photo gallery viewgers with multi-image swiping built-in.
- You need state management or routing features.
Strengths
- Appears on top of other widgets by using an OverlayEntry.
- Pure Dart implementation compatible with all Flutter platforms.
- Customizable animation curve, duration, scale limits, and modal barrier color.
Weaknesses
- Limited to single widget overlay zooming rather than a full photo viewer experience.
- Does not document advanced multi-touch pan/zoom gestures beyond basic scaling.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
ZoomOverlay(
minScale: 0.5,
maxScale: 3.0,
child: CachedNetworkImage(
imageUrl: imageUrl,
),
)Alternatives
Packages that do the same job and could replace zoom_pinch_overlay.
- pinch_zoom_release_unzoom
A widget that provides Instagram-like pinch-to-zoom that resets size when released.
59Compare - pinch_zoom
Widget that adds pinch‑to‑zoom with automatic reset on release for images or video.
60Compare - insta_image_viewer
Full‑screen image viewer with swipe‑to‑dismiss and pinch‑zoom
50Compare
Works with
Packages commonly used together with zoom_pinch_overlay: ones it builds on, ones built on it, and its own family.