Skip to content

Instantly share code, notes, and snippets.

@fvilarino
Created April 20, 2024 22:55
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 fvilarino/1c5132b42b784a3365ff8a0c505ec044 to your computer and use it in GitHub Desktop.
Save fvilarino/1c5132b42b784a3365ff8a0c505ec044 to your computer and use it in GitHub Desktop.
Shared Elem - List Calling
composable(
route = "list"
) {
ListScreen(
// 1
animatedVisibilityScope = this@composable,
onItemClick = { item ->
val encoded = URLEncoder.encode(item, "UTF-8")
navController.navigate("details/$encoded")
},
modifier = Modifier.fillMaxSize(),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment