-
Notifications
You must be signed in to change notification settings - Fork 721
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 to change the swipe direction of the stack layout to the reverse of the default one? #52
Comments
I have solved it by changing two lines of code! :) void _onPanEnd(DragEndDetails details) {
} void _onPanStart(DragStartDetails details) { void _onPanUpdate(DragUpdateDetails details) {
} int _currentIndex = 0; swiper.dart |
Hi @adar2378 I don't really understand the changes you made in order to change the stack direction. Did you finaly found something in order to reverse the Stack direction ? I would be happy to see it working Thanks in advance |
Yes I have managed to change the direction, follow //edited here comments, thats where i made the changes. also made changes here: |
thank @adar2378 your changes worked like a charm, just i have the problem with the order of the widgets in the stack, they are reversed, any idea on how to change it? As you can se the bigger values are top in the stack but they sould be in the buttom |
Yeah, check 903 line in swiper.dart |
@rurickdev @adar2378 How did you make the stack on the right side one top of other?
This make them on top of each other not the edge effect. |
this code add but i have a some error |
https://github.com/clong1995/StorySwiper |
Swiper(
layout: SwiperLayout.STACK,
Please can anyone help me to understand how can I change the default card swiping direction?
The text was updated successfully, but these errors were encountered: