Skip to content

Instantly share code, notes, and snippets.

@dilrajsingh1997
Created November 21, 2021 17:06
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 dilrajsingh1997/fa68f46008c101d01a714f926a322f7e to your computer and use it in GitHub Desktop.
Save dilrajsingh1997/fa68f46008c101d01a714f926a322f7e to your computer and use it in GitHub Desktop.
composable(
route = UserPageDestination.route + ",list={list}",
arguments = UserPageDestination.argumentList.apply {
add(navArgument("list") {
type = // your type here
})
}
) { backStackEntry ->
val (userId, isLoggedIn) = UserPageDestination.parseArguments(backStackEntry)
val list = backStackEntry.arguments?.getParcelableArrayList("list")
// content
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment