-
-
Save dilrajsingh1997/ec055fe7d5fddef833294c52e5cfac3c to your computer and use it in GitHub Desktop.
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
composable( | |
route = UserPageDestination.route, | |
arguments = UserPageDestination.argumentList | |
) { backStackEntry -> | |
val (userId, isLoggedIn) = UserPageDestination.parseArguments(backStackEntry) | |
Box(modifier = Modifier.fillMaxSize()) { | |
Column( | |
modifier = Modifier.align(Alignment.Center), | |
horizontalAlignment = Alignment.CenterHorizontally | |
) { | |
Text(text = "This is user page with userId: $userId", textAlign = TextAlign.Center) | |
Spacer(modifier = Modifier.height(20.dp)) | |
Text(text = "Is user logged in $isLoggedIn", textAlign = TextAlign.Center) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment