<@UHAJKUSTU> is there a sample for creating Tab Na...
# decompose
a
@Arkadii Ivanov is there a sample for creating Tab Navigation with decompose? I’m wondering if
ChildStack
is still the way to go? but I’m not sure how to handle sliding gestures. Do you have any advice?
a
I think it's better to try the new Child Pages. But on Compose, it uses HorizontalPager under the hood, which is experimental. E.g. there are known bugs on desktop. On Android it worked fine.
a
I came across Child Pages on the documentation but I still am not sure how to implement it? Is there a sample I could check out?
a
Currently, there is only documentation, sorry. Feel free to try, it should be similar to Child Stack.
a
Ok will do. Thanks @Arkadii Ivanov
a
On desktop, it was pretty much broken, last when I tried it.
s
@Arkadii Ivanov Sorry to ask, but in my project, i am using simple child stack, and using the bringToFront method on tab click for bottom tabs. I followed the official decompose sample. Cant we do it(sliding gestures) anyway with childStack itself. Or do we have to try child pages for that?
a
We can. But Child Pages is a different navigation model, and HorizontalPager provides nice scrolling UX out of the box.
s
Ok, Thanku, i will check that and will try to migrate to that.
a
Yeah. With tabs navigation, if you have e.g. 3 tabs and the middle tab is selected, the user should be able to swipe left and right. With Child Stack you will have the selected tab on top of the stack. The question is which component should be displayed on the left and on the right. Child Pages model just fits better.
s
Cool, got it now. thanx