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

Open
Same7- opened this issue Oct 29, 2024 · 0 comments
Open

Android Compose Add a Scrollable List #141

Same7- opened this issue Oct 29, 2024 · 0 comments

Comments

@Same7-
Copy link

Same7- commented Oct 29, 2024

Name of the Codelab or Codelab URL

https://developer.android.com/codelabs/basic-android-kotlin-compose-training-add-scrollable-list#0

Describe the problem

There's a typo in the code sample in the AffirmationsApp function. The Modifier parameter for Surface should be modifier = Modifier, not Modifier = Modifier.

In which lesson and step of the codelab can this issue be found?

Lesson 3 "Add a list to your app" in the section titled "Display the list" in step 4.

How to reproduce?

  1. Follow the codelab to Lesson 3 "Add a list to your app" in the section titled "Display the list" in step 4.
  2. In the fun AffirmationsApp(), notice the Modifier parameter for Surface is incorrectly written as Modifier = Modifier.

Versions

  1. Android Studio Version: Android Studio Ladybug Feature Drop | 2024.2.2 Canary 6
  2. API Level: Targeting API level 34

Additional information

This typo can be confusing for beginners following the codelab. Correcting it will improve the learning experience.

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