Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: pinch and zoom #41

Open
1 task done
joaquingrech opened this issue Apr 27, 2024 · 1 comment
Open
1 task done

[Bug]: pinch and zoom #41

joaquingrech opened this issue Apr 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@joaquingrech
Copy link

joaquingrech commented Apr 27, 2024

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
@joaquingrech joaquingrech added the bug Something isn't working label Apr 27, 2024
@nixrajput
Copy link
Owner

nixrajput commented Apr 29, 2024

Hi @joaquingrech,

Thank you for raising the issue. I would greatly appreciate your feedback as it helps us improve our project and address the potential issues. We value your input and will work towards solving the problem you pointed out. Your contribution to our project is invaluable, and we are grateful for your help in improving it. Thank you for taking the time to bring this issue to our attention.

Regards,
Nikhil (@nixrajput )

@nixrajput nixrajput added enhancement New feature or request good first issue Good for newcomers labels Apr 29, 2024
@nixrajput nixrajput pinned this issue May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants