jetpackTemplate icon indicating copy to clipboard operation
jetpackTemplate copied to clipboard

Navigation from Composable is not well abstracted

Open mwolfson opened this issue 2 years ago • 0 comments

The design of how to navigate between destinations is not well designed, and needs to be abstracted a bit.

I plan to do something like Joe Birch mentions in his great Navigation article

object NavigationDirections {

    val authentication  = object : NavigationCommand {

        override val arguments = emptyList<NamedNavArgument>()

        override val destination = "authentication"

    }

    val dashboard = object : NavigationCommand {

        override val arguments = emptyList<NamedNavArgument>()

        override val destination = "dashboard"
    }
}

mwolfson avatar Jun 03 '22 16:06 mwolfson