dbilgin / swipe_image_gallery

A scrollable, dismissable by swiping, zoomable gallery for Flutter, on which you can add a dynamic overlay.
MIT License
30 stars 16 forks source link

Swipe direction #19

Closed devbrisk closed 1 week ago

devbrisk commented 3 months ago

Please add a direction option to swipe left or right. Add a Directionality widget can do that.

dbilgin commented 3 months ago

Hi @devbrisk thanks for opening an issue, could you elaborate? Do you want the capability to go 4 3 2 1 rather than 1 2 3 4 when swiping left or right?

devbrisk commented 3 months ago

Yes exactly

dbilgin commented 3 months ago

Got it, will have a look at this, thanks!

dbilgin commented 1 week ago

Hi @devbrisk, sorry for getting back to you on this so late, I just made a new release v0.8.9. There is now support for a reverseDirection boolean property. You can simply pass it when initializing the package.

 await SwipeImageGallery(
   context: context,
   children: images,
   reverseDirection: true,
 ).show();