flutter_swipable_stack
flutter_swipable_stack copied to clipboard
How do I reset the stack?
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
Hello @dangduoc
The easiest way is to rebuild the widget and give it the original list that you had.
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 🙏
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 🙏