Open marchellodev opened 3 years ago
I found a solution !!!
We can use PageView
instead of TabBarView
. Now we just need to manually attach PageView
to the TabBar
. I've added a small snippet of how this could be done below.
TabBar
s, so that pages will transition on click. It's not hard to code now though.I think it would be pretty cool to make this into a package. @IAmSarthakVerma What do you think?
Demo: https://drive.google.com/file/d/1CrY_KKxFj8IG_QPL54PKPy5HSlemUtCc/view?usp=sharing
Nevermind, there is already a package for just that https://github.com/wilin52/union_tabs
lol
Nested
TabBarView
means that when user scrolls the last element of theTabBarView
that is inside, the swipe seamlessly transitions to the mainTabBarView
. This project, however, just putsTabBarView
inside another one and adds some paddings. Therefore, there is no seamless transition.Video that clearly demonstrates that: https://drive.google.com/file/d/1JfkuPrH11dTBJQpQu5vYC90Cuf8RYNiU/view
If someone finds out how to code a real nested
TabBarView
- please let me know :)