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

Apache License 2.0
61 stars 93 forks source link

Intro to state in Compose: Android Basics with Compose #195

Open Wilson9347 opened 5 months ago

Wilson9347 commented 5 months ago

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

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

Intro to state in Compose - Display the tip amount

Describe the problem In the following text proceeds should be follows or something similar

Note: The ?: Elvis operator returns the expression that precedes it if the value isn't null and the expression that proceeds it when the value is null. It lets you write this code more idiomatically.

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.