google-developer-training / basic-android-kotlin-compose-training-tip-calculator

Apache License 2.0
61 stars 93 forks source link

Calculate a custom tip: Android Basics with Compose #148

Open harmanmstf opened 11 months ago

harmanmstf commented 11 months ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-calculate-tip?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-calculate-tip#5

In which task and step of the codelab can this issue be found? Add a swirch Switch( modifier = modifier .fillMaxWidth() .wrapContentWidth(Alignment.End), //... )

Describe the problem In this part it should be modifier = Modifier.

   Switch(
       modifier = Modifier
           .fillMaxWidth()
           .wrapContentWidth(Alignment.End),
       //...
   )

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions Android Studio version: API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem.

Jaehwa-Noh commented 11 months ago

I also found that problem but, in the main branch you can see the usage of Modifier not modifier. It seemed to be Codelab problem but I don't know where we can make pull request for a codelab.