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

Apache License 2.0
61 stars 97 forks source link

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

Open incon opened 8 months ago

incon commented 8 months ago

URL of codelab In which task and step of the codelab can this issue be found? https://developer.android.com/codelabs/basic-android-kotlin-compose-using-state?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-using-state#8

Describe the problem val amount = amountInput.toDoubleOrNull() ?: 0.0 Should be val amount = amountInput.value.toDoubleOrNull() ?: 0.0

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.

ambled commented 3 months ago

thank you