Android, Navigation Component, Jetpack Compose, Kotlin, AndroidDev.
Kotlin code. Navigation Compose and the Kotlin DSL Navigation Compose fully embraces the Kotlin DSL for building navigation graphs, moving away from static XML files. Old Way (String-Based Navigation) // Navigate to profile details navController.navigate("profile/{userId}/{name}") ... composable(