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

Add vertical flip view to stack version. #22

Open
BurykinNikolay opened this issue Oct 24, 2018 · 1 comment
Open

Add vertical flip view to stack version. #22

BurykinNikolay opened this issue Oct 24, 2018 · 1 comment

Comments

@BurykinNikolay
Copy link

Good day!
How to make stack swiper like this?
swiper

@rurickdev
Copy link

i just modded the _updateValues function in the stackViewState

void _updateValues() {
    if (widget.scrollDirection == Axis.horizontal) {
      double space = (_swiperWidth - widget.itemWidth) / 2;
      //! Here I changed the offsets values, changet the negatives to positives and positives to negatives
      offsets = [ space, (space / 3 * 2), space / 3, 0.0, -_swiperWidth ];
    }

The only probles its the gesture its inverted (swipe to left move the stack to right) and the list is too inverted (next item its at left and previus its at right)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants