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 #138

Open
kotlinProgrammingLover opened this issue Oct 23, 2024 · 1 comment
Open

Android Compose Add a Scrollable List #138

kotlinProgrammingLover opened this issue Oct 23, 2024 · 1 comment

Comments

@kotlinProgrammingLover
Copy link

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
In this code snippet:

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),
),
) {
}
}

function is called AffirmationApp() before in the code, so compiler doesn't recognise it. And first Modifier has to be written in lowercase (modifier = Modifier).

Thanks for the great job doing this training programs! Please do not missunderstand my intentions pointing errors. I just do it as a way to collaborate, not complain.

@ShawnDGitHub
Copy link

Yeah, it is correct, but this repository does not appear to be regularly managed.

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

2 participants