google-developer-training / basic-android-kotlin-compose-training-cupcake

Apache License 2.0
71 stars 83 forks source link

Navigate between screens with Compose: Android Basics with Compose Cupcake Lab section 4 needs navHostController #98

Open pliu-repo opened 6 months ago

pliu-repo commented 6 months ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-navigation?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-4-pathway-2%3Fauthuser%3D3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-navigation&authuser=3#3

In which task and step of the codelab can this issue be found? Section 4. Define routes and create a NavHostController

Describe the problem Code lab never incorporated instructions to add

navController: NavHostController = rememberNavController()

to the CupcakeApp function input parameters.