google-developer-training / basic-android-kotlin-compose-birthday-card-app

Apache License 2.0
125 stars 95 forks source link

Text composables: Android Basics with Compose #890

Open jetbreed opened 3 weeks ago

jetbreed commented 3 weeks ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-classes-and-objects?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-classes-and-objects#5

In which task and step of the codelab can this issue be found? Define a Constructor

Describe the problem

The below illustration is almost correct or might be deceptive as the keyword "constructor" is not needed for primary constructor declaration:

class name constructor(parameters){ body }

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.