Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Compose Add a Scrollable List #129

Open
Mmanion opened this issue Sep 12, 2024 · 0 comments
Open

Android Compose Add a Scrollable List #129

Mmanion opened this issue Sep 12, 2024 · 0 comments

Comments

@Mmanion
Copy link

Mmanion commented Sep 12, 2024

Name of the Codelab or Codelab URL
Add a scrollable list

Describe the problem
Simple variable capitalization error in code.

For the function - see comment

@composable
fun AffirmationsApp() {
val layoutDirection = LocalLayoutDirection.current
Surface(
Modifier = Modifier // < ---- this should be "modifier = Modifier" instead, based on how modifier is named in
.fillMaxSize()
.statusBarsPadding()
.padding(
start = WindowInsets.safeDrawing.asPaddingValues()
.calculateStartPadding(layoutDirection),
end = WindowInsets.safeDrawing.asPaddingValues()
.calculateEndPadding(layoutDirection),
),
) {
}
}

In which lesson and step of the codelab can this issue be found?
In "Display the list" Part 3.

How to reproduce?
What are the exact steps to reproduce the problem?
Code won't compile unless you change it to "modifier".

Versions

  1. What version of Android Studio are you using? n/a
  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant