Rick Regan
09/24/2021, 10:01 PMAnimatedNavHost
and now tried to introduce parameters into my navigation starting with the doc example arguments = listOf(navArgument("userId") { defaultValue = "me" })
but I get the compiler error "Type mismatch: inferred type is List<androidx.navigation.NamedNavArgument> but List<androidx.navigation.compose.NamedNavArgument> was expected". Does anyone know how to fix this (other than going back to regular NavHost
, which works)?Albert Chang
09/25/2021, 8:56 AMRick Regan
09/25/2021, 1:46 PMAlbert Chang
09/25/2021, 1:51 PMTheKotlin DSL function is now part ofnavArgument
instead ofnavigation-common
. This will require updating imports to continue to use this function.navigation-compose
Rick Regan
09/25/2021, 1:55 PMColton Idle
09/27/2021, 2:43 AMAlbert Chang
09/27/2021, 2:48 AM