Skip to content

[Bug]: pinch and zoom #41

Open
Open
@joaquingrech

Description

@joaquingrech

Contact Details

No response

What happened?

I've tried blocking the scrolling feature while I do a pinch and zoom on the widget. I didn't find a way to achieve this.
When you try to pinch and zoom, the widget scroll controller takes control and it is a hit or miss.
I also tried setting the physics to NeverScroll and a boolean, but no luck. It seems this widget cannot allow for pinch and zoom on its images.

To give you an idea of what I'm trying to achieve, something similar to what Instagram photos achieve. You may have a post with multiple images (a flutter_carousel_widget) and at the same time you have a scroll up and down the feed and a pinch and zoom on the images.

This widget does not allow for that, the moment you try to pinch and zoom it will either ignore it or move the page to the beginning.

I'm using the flutter package: https://pub.dev/packages/pinch_to_zoom_scrollable

If you have multiple images it will always go back to page 1 while zooming or when releasing and it loses track of the page index, even if you have it as a global variable.

Version

latest

What devices are you seeing the problem on?

Android

OS

Android any

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions