Skip to content

Errors when building SampleListDetailPaneScaffold.kt #625

@telpirion

Description

@telpirion

Issue

The "Build a list-detail layout" page and sample has some issues. Specifically:

  • The "Build a list-detail app" page might benefit from more code sample snippets per step.
  • The page and code should also clearly mark what are user-provided values (e.g. MyItem) vs. what are platform-provided. For example, it took a bit of scanning in the GitHub code file to find what shortStrings was.
  • Error when building/analyzing this code:
Argument type mismatch: actual type is
'androidx.compose.material3.adaptive.navigation.ThreePaneScaffoldNavigator<com.example.readingapp.WorkInfo>', 
but
'androidx.compose.material3.adaptive.navigation.ThreePaneScaffoldNavigator<kotlin.Any>'
was expected.

Environment

  • macOS
  • Android Studio Narwhal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions