This package helps to create an instagram like zoom picture. With pinch to zoom and release to unzoom
In this video I explained how to use pinch to zoom, in a flutter project
https://youtu.be/V2DglEpynF8
Features
Let's your app show zoomable images in an user friendly way.
It's a container of an uncliped interactive viewer that let's the user zoom the image occupying the entire screen.
Once you release the screen and stop the pinch interaction the image/widget will come back to it's original size in an smooth animation.
I made a video explaining how to solve the pinch to zoom inside a scroll:
https://youtu.be/FUuCOdQerpw
The problem with making a pinch working inside a scroll is that the drag of a screen,
as a simple gesture that can be done with just one finger,
tends to override the more complex scale gesture that needs two fingers to work well,
the best way I found to overcome that challenge is to change the physics of the scroll to NeverScrollableScrollPhysics()
when the second finger touch the screen, that way the scroll stops to override the scale gesture and it's easy to interact with the interactive viewer.
Another consideration that you will need to have is that to avoid losing frames of the reset animation,
you need to delay the setState that will bring the scroll back to the parent widget