pinch_zoom_image 0.2.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 92

Pinch Zoom Image #

A widget that makes picture pinch zoom, Instagram style!

Example one Example two

Installation #

Add this to your pubspec.yml dependencies:

pinch_zoom_image: "^0.2.5"

How to use #

Add the widget to your app like this (It automatically takes the size of the image you pass to it):

  zoomedBackgroundColor: Color.fromRGBO(240, 240, 240, 1.0),
  hideStatusBarWhileZooming: true,
  onZoomStart: () {
    print('Zoom started');
  onZoomEnd: () {
    print('Zoom finished');

The zoomedBackgroundColor is the color that fills the image's space when the use is zooming it and moving it on the screen.

If you want images from internet to be cached for offline use or data saving, you can also use this with the cached_network_image widget:

  image: CachedNetworkImage(
    imageUrl: '',
  zoomedBackgroundColor: Color.fromRGBO(240, 240, 240, 1.0),
  hideStatusBarWhileZooming: true,


[0.2.5] - Nov 6

  • Upgrade to Flutter 0.10.2 (Solves kotlin plugin version issue)

[0.2.4] - Oct 12

  • Add onZoomStart and onZoomEnd events callbacks

[0.2.3] - Oct 12

  • Make package accept any widget as image (Make it easy to work with packages like cached_network_image)

[0.2.2] - Oct 11

  • Turn package into plugin
  • Hide and show status bar using native platform code

[0.1.1] - Sep 27

  • First release


pinch_zoom_image_example #

Demonstrates how to use the pinch_zoom_image plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  pinch_zoom_image: ^0.2.5

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:pinch_zoom_image/pinch_zoom_image.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 17, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Maintenance suggestions

Package is getting outdated. (-19.45 points)

The package was last published 62 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8