jetpack compose navigation dependency
dependencies {
// add the following dependecy on you app level gradle file.
implementation "androidx.navigation:navigation-compose:2.4.0-alpha10"
}
jetpack compose navigation dependency
dependencies {
// add the following dependecy on you app level gradle file.
implementation "androidx.navigation:navigation-compose:2.4.0-alpha10"
}
jetpack compose navigation
val navController = rememberNavController()
NavHost(navController, startDestination = "profile") {
composable("profile") { Profile(...) }
composable("friendslist") { FriendsList(...) }
...
}
fun Profile(navController: NavController) {
...
Button(onClick = { navController.navigate("friends") }) {
Text(text = "Navigate next")
}
...
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us