pinch_zoom_image_last 0.4.1 copy "pinch_zoom_image_last: ^0.4.1" to clipboard
pinch_zoom_image_last: ^0.4.1 copied to clipboard

discontinuedreplaced by: easy_image_viewer

Pinch Zoom Image package last fixed version. The owner of this package is not accept the pull request. That so I created updated version and you can open issues. I can fix asap.

Pinch Zoom Image Last Fixed #

pub package

Updated and fixed version of 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_last: ^0.3.2
copied to clipboard

How to use #

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

PinchZoomImage(
  image: Image.network('https://i.imgur.com/tKg0XEb.jpg'),
  zoomedBackgroundColor: Color.fromRGBO(240, 240, 240, 1.0),
  hideStatusBarWhileZooming: true,
  onZoomStart: () {
    print('Zoom started');
  },
  onZoomEnd: () {
    print('Zoom finished');
  },
),
copied to clipboard

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:

PinchZoomImage(
  image: CachedNetworkImage(
    imageUrl: 'https://i.imgur.com/tKg0XEb.jpg',
  ),
  zoomedBackgroundColor: Color.fromRGBO(240, 240, 240, 1.0),
  hideStatusBarWhileZooming: true,
),
copied to clipboard

Enjoy!

46
likes
130
points
1.31k
downloads

Publisher

verified publisherfurkankurt.com.tr

Weekly Downloads

2024.09.19 - 2025.04.03

Pinch Zoom Image package last fixed version. The owner of this package is not accept the pull request. That so I created updated version and you can open issues. I can fix asap.

Repository (GitHub)

Documentation

API reference

License

ISC (license)

Dependencies

flutter

More

Packages that depend on pinch_zoom_image_last