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
- What version of Android Studio are you using?
- 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