Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Composable
fun LoginScreen(
navigateToHome: () -> Unit
) {
/*...*/
Button (onClick = navigateToHome) {
/*...*/
}
@Composable
fun HomeScreen(
navigateToProfile: (String, Boolean) -> Unit,
navigateToSearch: (String?) -> Unit
) {
/*...*/
Button(onClick = { navigateToProfile("someId", true) }) {
/*...*/
Button(onClick = { navigateToSearch("query") }) {
/*...*/
}
@Composable
fun ProfileScreen(
id: String,
isEditable: Boolean = false
) { /*...*/ }
@Composable
fun SearchScreen(
query: String?
) { /*...*/ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment