pinch_zoom
2.0.1, released 2 years ago by jelter.net
Widget that adds pinch‑to‑zoom with automatic reset on release for images or video.
What it does
Provides an InteractiveViewer‑based widget that lets users pinch to zoom content and returns it to its original size when the gesture ends. It works across mobile, web and desktop platforms.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need simple pinch‑to‑zoom on a single image or video widget
- You want the zoom overlay to appear above all other UI elements
- You need a cross‑platform solution with minimal setup
Skip it when
- You require complex multi‑gesture interactions or custom animation curves
- You need to zoom multiple children simultaneously
- You need fine‑grained control over the reset animation
Strengths
- Responsive Instagram‑like zoom behavior
- Works on Android, iOS, Web, Windows, macOS and Linux
- Zero configuration – just wrap your widget
Weaknesses
- Breaking changes between major versions may require code updates
- Limited customization of the reset animation
- Only supports a single child
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
PinchZoom(
child: Image.network('https://placecats.com/640/360'),
maxScale: 2.5,
onZoomStart: () => print('Start zooming'),
onZoomEnd: () => print('Stop zooming'),
);Alternatives
Packages that do the same job and could replace pinch_zoom.
- pinch_zoom_release_unzoom
A widget that provides Instagram-like pinch-to-zoom that resets size when released.
59Compare - measure_size
Widget that reports its size changes via a callback.
58Compare - tap_builder
A simple widget for building interactive areas with customizable visual effects.
50Compare - zoom_widget
A Flutter widget to create a customizable canvas with zoom and scroll capabilities.
50Compare