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

Apache License 2.0
61 stars 97 forks source link

A clerical error in codelab | Calculate a custom tip: Android Basics with Compose #213

Open cloud1-cloud2 opened 4 months ago

cloud1-cloud2 commented 4 months ago

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

In which task and step of the codelab can this issue be found? Step6 Number8

Describe the problem Switch( modifier = modifier .fillMaxWidth() .wrapContentWidth(Alignment.End), //... ) The code in the github is correct,but the code above has a clerical error and it should be like this: 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.

屏幕截图 2024-06-27 005136