Skip to content

Instantly share code, notes, and snippets.

@raamcosta
Last active September 28, 2021 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raamcosta/8123783bd8b2900501b36c2a95044391 to your computer and use it in GitHub Desktop.
Save raamcosta/8123783bd8b2900501b36c2a95044391 to your computer and use it in GitHub Desktop.
Compose Destinations approach - Composables
@Destination(route = "profile")
@Composable
fun ProfileScreen(
id: String,
isEditable: Boolean = false
) {/*...*/}
@Destination(route = "login", start = true)
@Composable
fun LoginScreen() {/*...*/}
@Destination(route = "main_feed")
@Composable
fun MainFeedScreen() {/*...*/}
@Destination("search")
@Composable
fun SearchScreen() {/*...*/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment