jetpackTemplate
jetpackTemplate copied to clipboard
Navigation from Composable is not well abstracted
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"
}
}