Skip to content

Navigation from Composable is not well abstracted #2

@mwolfson

Description

@mwolfson

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"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions