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

How do I reset the stack? #66

Open
dangduoc opened this issue Sep 28, 2022 · 3 comments
Open

How do I reset the stack? #66

dangduoc opened this issue Sep 28, 2022 · 3 comments

Comments

@dangduoc
Copy link

When users have swiped all the cards in stack, I want to let them choose to restart (swipe from the first card). controller has only one method to rewind the last action not all the way back to the first card

@mghali1
Copy link

mghali1 commented Dec 23, 2022

Hello @dangduoc

The easiest way is to rebuild the widget and give it the original list that you had.

@pnilkanth12
Copy link

Hi @dangduoc I know it's too late may be you find the answer but I hope my answer should be help new developer

You need to just set on button click to set SwipableStackController index is 0

_controller.currentIndex=0;

Thanks 🙏

@AhmedRazaUtor
Copy link

Hi @dangduoc I know it's too late may be you find the answer but I hope my answer should be help new developer

You need to just set on button click to set SwipableStackController index is 0

_controller.currentIndex=0;

Thanks 🙏

it's working 🙏

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

4 participants