You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
What version of Android Studio are you using? n/a
What API level are you targeting? n/a
Additional information
Add any other context about the problem here.
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
Additional information
Add any other context about the problem here.
codelab: basic-android-compose-training-add-scrollable-list
The text was updated successfully, but these errors were encountered: