John O'Reilly
04/17/2024, 9:53 PMStylianos Gakis
04/17/2024, 9:57 PMJohn O'Reilly
04/17/2024, 10:00 PMJohn O'Reilly
04/17/2024, 10:01 PMcomposable(route = "details/{countryName}") { backStackEntry ->
}
and then
navController.navigate("details/${country.name}")
John O'Reilly
04/17/2024, 10:02 PMStylianos Gakis
04/17/2024, 10:05 PMcomposable(route = “details/{countryName}“)
you also pass in there the navType explicitly? Not sure if the API for the KMP version is the same but if it is, something like this
composable(
"details/{countryName}",
arguments = listOf(navArgument("countryName") { type = NavType.StringType })
)
John O'Reilly
04/17/2024, 10:05 PMStylianos Gakis
04/17/2024, 10:06 PMcomposable(
"details?countryName={countryName}",
arguments = listOf(navArgument("countryName") { type = NavType.StringType })
)
and maybe there was some API to say that it’s nullable? I can’t find smth right nowStylianos Gakis
04/17/2024, 10:06 PMnavArgument("...") { defaultValue = "somethingHere" }
does that change anything?John O'Reilly
04/17/2024, 10:11 PMIan Lake
04/17/2024, 10:19 PMJohn O'Reilly
04/17/2024, 10:20 PMJohn O'Reilly
04/19/2024, 6:54 PM2.8.0-dev1593
John O'Reilly
04/19/2024, 6:54 PMIan Lake
04/19/2024, 8:06 PMJohn O'Reilly
04/19/2024, 8:06 PMJohn O'Reilly
04/24/2024, 2:18 PMJohn O'Reilly
04/24/2024, 2:18 PMNavigation
Support parsing navigation arguments (#1277, #1289)
John O'Reilly
04/24/2024, 5:20 PM