google-developer-training / basic-android-kotlin-compose-training-unscramble

Apache License 2.0
98 stars 140 forks source link

Android Basics: Viewmodel and State in Compose, incorrect description of step 5 #151

Open ereimer-aracom opened 11 months ago

ereimer-aracom commented 11 months ago

in description text: https://developer.android.com/codelabs/basic-android-kotlin-compose-viewmodel-and-state?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-4-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-viewmodel-and-state#5

  1. Update the GameLayout() composable function to display currentScrambledWord. Set the text parameter of the first text field in the column to currentScrambledWord. we are in branch 'starter'

but really it is not 1-st Text(), but 2-nd Test() composable, that is clear if we see on branch 'main' in 1-st text we are calculating result such as 2/10 or 10/10 of words that player guesed

image