mikepenz / AboutLibraries

AboutLibraries automatically collects all dependencies and licenses of any gradle project (Kotlin MultiPlatform), and provides easy to integrate UI components for Android and Compose-jb environments
http://mikepenz.github.io/AboutLibraries/
Apache License 2.0
3.66k stars 423 forks source link

Marking header slot as composable #888

Closed savvasdalkitsis closed 1 year ago

savvasdalkitsis commented 1 year ago

Cannot use header slot as it is not marked composable (unless i'm missing something obvious). This should fix that

mikepenz commented 1 year ago

Thank you very much for the PR.

However the @Composable is not required here. Please see the sample: https://github.com/mikepenz/AboutLibraries/blob/develop/app/src/main/java/com/mikepenz/aboutlibraries/sample/ComposeActivity.kt#L93-L106

(Similar you can use the items {})

savvasdalkitsis commented 1 year ago

🤦 I hadn't realised the block was inside a lazylistscope. my bad :D