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

Open fabiocarluccio opened 7 months ago

fabiocarluccio commented 7 months ago

URL of codelab 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#5

In which task and step of the codelab can this issue be found? On point "6: Use remember function to save state"

Describe the problem There is a little mistake. Change this:

When the user enters text into the text field, the onValueChange lambda callback is called, the lambda executes, and the amountInput.value is set to the updated value entered in the text field.

Into this:

When the user enters text into the text field, the onValueChange lambda callback is called, the lambda executes, and the amountInput is set to the updated value entered in the text field.