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 #145

Open DurraizAli opened 11 months ago

DurraizAli commented 11 months ago

(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#3)

In task 10 Code Snippet you will find error

The code we are working on has parameters EditNumberField( label = R.string.how_was_theservice, value = tipInput, onValueChange = { tipInput = it }, modifier = Modifier.padding(bottom = 32.dp).fillMaxWidth() ) but in snippet it is written onValueChanged_ here the bold 'd' should not come, I encountered this problem

Steps to reproduce?

  1. Go to... the code snippet
  2. Click on... OnValueChanged
  3. See error... and change it to OnValueChange Screenshot (20)

Versions Android Studio version: API version of the emulator:

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