bluefireteam / photo_view

📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
MIT License
1.9k stars 544 forks source link

Flutter Web: Can't swipe images in Gallery #346

Open Henzelix opened 3 years ago

Henzelix commented 3 years ago

As in the title. I have 4 images in PhotoViewGallery and on Android app it works great, but on Flutter Web i can't swipe images so I can only see the first one. Is it possible to add arrows on both sides, so you can change images easily even on computer?

I'm on the newest version of Flutter and PhotoView.

clragon commented 3 years ago

Would be nice if swiping on the web was supported.

Regardless, you could add the arrows yourself; Put your gallery inside a stack, put 2 positioned widgets with your arrows inside the stack and add a call to pageController.animateToPage(pageController.page + 1) // or - 1 to an enclosing gesture detector.

Henzelix commented 3 years ago

@clragon thanks, will try that out

howyoujini commented 1 year ago

photo_view: 0.14.0 I want to swipe with mouse drag on Flutter Web. How can I solve this by manipulating mouse events? Is adding arrow buttons the only solution?

ServOKio commented 7 months ago

Any update ?