Skip to content

Android Compose Add a Scrollable List - Error in tutorial code #210

@alanman

Description

@alanman

Name of the Codelab or Codelab URL
https://developer.android.com/codelabs/basic-android-kotlin-compose-training-add-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-training-add-scrollable-list#2

Describe the problem
A code mistake. In the Surface() object, it says to add "Modifier = Modifier". This returns an error.
"No parameter with name Modifier found."

Image

In which lesson and step of the codelab can this issue be found?
Step 3, all the way at the bottom.

How to reproduce?
Use the code example given and try to compile.
It works if I change it to "modifier = Modifier"

Versions
Android Studio Narwhal 3
SDK 35

Additional information
I could be totally mistaken and missed some code somewhere, but it looks odd to me to do what seems like passing a value to a class instead of an instantiated object.

codelab: basic-android-compose-training-add-scrollable-list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions