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

Option to disable Swiping #24

Open
fvisticot opened this issue Oct 28, 2018 · 3 comments
Open

Option to disable Swiping #24

fvisticot opened this issue Oct 28, 2018 · 3 comments

Comments

@fvisticot
Copy link

My application is using the Swiper component to display Cards.
Cards can be added or removed from the Swiper.

When there is only 1 Card, i need to disable Swiping.
Is there an option for that or a generic solution provided by Widget component ?

@loolooii
Copy link

loolooii commented Dec 6, 2018

Just add physics: NeverScrollableScrollPhysics(), and it won't swipe.

@3ace
Copy link

3ace commented Dec 17, 2018

using NeverScrollableScrollPhysics to prevent swipe didn't worked. I'm using Tinder layout.

@Abhishek01039
Copy link

Hi @loolooii
physics: NeverScrollableScrollPhysics() in swiper not 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