Skip to content

Android Compose Add a Scrollable List: typo argument name should be modifier instead of Modifier #208

@Bobgy

Description

@Bobgy

Name of the Codelab or Codelab URL

Android Compose Add a Scrollable List

https://developer.android.com/courses/pathways/android-basics-compose-unit-3-pathway-2

Describe the problem
A clear and concise description of what the problem is.

@Composable
fun AffirmationsApp() {
    val layoutDirection = LocalLayoutDirection.current
    Surface(
        Modifier = Modifier
        .fillMaxSize()
        .statusBarsPadding()

For this piece of code, Surface's argument should be modifier, not Modifier, so it should be

@Composable
fun AffirmationsApp() {
    val layoutDirection = LocalLayoutDirection.current
    Surface(
        modifier = Modifier
        .fillMaxSize()
        .statusBarsPadding()

In which lesson and step of the codelab can this issue be found?
Lesson number + step number.

Step 3, add a list to your app.

How to reproduce?
What are the exact steps to reproduce the problem?

N/A

Versions

  1. What version of Android Studio are you using?
  2. What API level are you targeting?

N/A

Additional information
Add any other context about the problem here.

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