nixrajput / flutter_carousel_widget

A customizable carousel slider widget in Flutter which supports infinite scrolling, auto scrolling, custom child widget, custom animations and built-in indicators.
https://pub.dev/packages/flutter_carousel_widget
MIT License
27 stars 16 forks source link

[Bug]: pinch and zoom #41

Open joaquingrech opened 2 months ago

joaquingrech commented 2 months ago

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

nixrajput commented 2 months ago

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 )