Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 419 Bytes

PARAMS_SUPPORT.md

File metadata and controls

19 lines (16 loc) · 419 Bytes

To handle params you can use implicit receiver inside any Odyssey screen function such as screen, flow or bottomNavigation

For example:

screen("actions") { // it: Any? ->
    ActionsScreen(count = it as Int)
}

@Composable
fun ActionsScreen(count: Int) {
    // Your content here
}
val rootController = LocalRootController.current
rootController.push(screen = "actions", params = 0)