-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Enable to swipe within a PageView/TabBarView #18
Comments
I'll take a look on that this weekend, thank you for reporting it |
to fix that try to disable the scrolling in the TabViewBar and enable the scrolling int TabBar by doing
|
i hope this will help you @mgaucher |
I don't think it solve my issue,
In this exemple you can see that you can swipe the TabBar but not the card swiper, if you put in the TabBarView a NeverScrollablePhysics(), the card swiper will work but you can't swipe the TabBar anymore. I found that if I replace the onPan gesture in the card_swiper.dart by the onHorizontalDrag gesture, both will work : swiper inside card swiper will swipe the cards and swiping outside the card swiper will swipe the tab bar. I don't have much time so I can't investigate further sorry |
hii @mgaucher , |
Hello,
I have a CardSwiper inside my TabBarView that as the isVerticalSwipingEnabled property to false. The problem is that if I try to move horizontally my cards, it will trigger the scroll of the TabView and not the CardSwiper.
I tried to replace in the CardSwiper widget the onPanStart/onPanUpdate/onPanEnd by onHorizontalDragStart/onHorizontalDragUpdate/onHorizontalDragEnd, it works but I don't know if it is the correct way to fix it. Can you check it ? Thanks
The text was updated successfully, but these errors were encountered: