Last active
September 28, 2021 18:39
-
-
Save raamcosta/8123783bd8b2900501b36c2a95044391 to your computer and use it in GitHub Desktop.
Compose Destinations approach - Composables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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