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

Open jlnieh opened 10 months ago

jlnieh commented 10 months ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-calculate-tip

In which task and step of the codelab can this issue be found? Step 4. Add a tip-percentage text field

Describe the problem

In previous codelab, Intro to state in Compose, the step 10. State hoisting, one of the parameters of the function, EditNumberField, is "onValueChange". But, in ths codelab, the paramter has been changed to "onValueChanged" They are mismatched.

Steps to reproduce?

  1. Following the codelab, Intro to state in Compose, to develop the project,
  2. Following this codelab, Calculate a custom tip, to update the function, EditNumberField
  3. There is a problem show that "Cannot find a parameter with this name: onValueChanged"

Versions Android Studio version: Android Studio Giraffe | 2022.3.1 Patch 2 API version of the emulator: Pixel_3a_API_34_extension_level_7_x86_64

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