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
Describe the problem
A clear and concise description of what the problem is.
When you use the final block of code on the page, the compiler is not happy.
The two problems are "Modifier = Modifier" (I think it's supposed to be "modifier = Modifier"), and safeDrawing, which I have no option to import
How to reproduce?
What are the exact steps to reproduce the problem?
paste this in your code and try to run:
import com.example.affirmations.data.Datasource
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 clear and concise description of what the problem is.
When you use the final block of code on the page, the compiler is not happy.
The two problems are "Modifier = Modifier" (I think it's supposed to be "modifier = Modifier"), and safeDrawing, which I have no option to import
In which lesson and step of the codelab can this issue be found?
Lesson number + step number.
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
it's the final step before running the app at the end of the page
How to reproduce?
What are the exact steps to reproduce the problem?
paste this in your code and try to run:
import com.example.affirmations.data.Datasource
@composable
fun AffirmationsApp() {
val layoutDirection = LocalLayoutDirection.current
Surface(
Modifier = Modifier
.fillMaxSize()
.statusBarsPadding()
.padding(
start = WindowInsets.safeDrawing.asPaddingValues()
.calculateStartPadding(layoutDirection),
end = WindowInsets.safeDrawing.asPaddingValues()
.calculateEndPadding(layoutDirection),
),
) {
AffirmationsList(
affirmationList = Datasource().loadAffirmations(),
)
}
}
Versions
Android Studio Koala | 2024.1.1 Patch 2
I don't know
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: