https://kotlinlang.org logo
#appyx
Title
# appyx
v

Vlad

10/12/2023, 3:37 PM
Hi, all. Can somebody help to create minimum viable transition backstack for appyx v2?
a

Andrei Kovalev

10/12/2023, 3:38 PM
Hi @Vlad, can you be a bit more specific in what do you want to achieve please?
If you need a simple
BackStackSlider
, you could take a look at https://github.com/bumble-tech/appyx/blob/2.x/demos/appyx-navigation/common/src/co[…]lin/com/bumble/appyx/navigation/node/container/ContainerNode.kt in the meantime we’re working on the proper sample app
v

Vlad

10/12/2023, 3:45 PM
Well, I create a RootNode https://pastebin.com/VLDFfyCx and got lost
what should I do to make transition from root to child1 and to child2
a

Andrei Kovalev

10/12/2023, 3:46 PM
you forgot to render children using
AppyxComposnent
in your Root’s Node
View
composable
Copy code
AppyxComponent(
            appyxComponent = backStack,
            modifier = modifier
                .fillMaxSize()
        )
then whenever you make operations on
backstack
like
pop
or
push
you should see
BackStackParallax
transitions
v

Vlad

10/12/2023, 3:51 PM
It didn't work
a

Andrei Kovalev

10/12/2023, 3:54 PM
You’re composing a
Column
above
AppyxComponent
v

Vlad

10/12/2023, 4:57 PM
Thank you, I find what I need
z

Zsolt

10/13/2023, 8:12 AM
Hey @Vlad just curious, were you following the quick start guide here? If so, I’d like to improve it if you can point out at which point you got lost: https://bumble-tech.github.io/appyx/navigation/quick-start/ Thanks!