rjrjr / compose-backstack

Simple composable for rendering transitions between backstacks.
Other
504 stars 23 forks source link

Create sample integrating with compose-router. #1

Open zach-klippenstein opened 4 years ago

noe commented 4 years ago

In case someone arrives here looking for an example of the integration with compose-router, I got it working by:

It looks like this:

    Router("blah", defaultRouting) { backStack ->
        Backstack(backStack.elements) { screen ->
            when (screen) {
                is ... -> ...
zach-klippenstein commented 4 years ago

Very cool! Would love to have a runnable sample that shows this off. Would you be interesting in posting a PR?

noe commented 3 years ago

What do you have in mind? An example app with a simple transition as example or something else?

zach-klippenstein commented 3 years ago

That would be great to start, yes. We can iterate and build more complex samples if they seem useful.