Skip to content

Add API to provide custom footer #1102

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

Merged
merged 4 commits into from
Mar 28, 2025
Merged

Add API to provide custom footer #1102

merged 4 commits into from
Mar 28, 2025

Conversation

mikepenz
Copy link
Owner

  • introduce API to provide custom footer
// custom header, divider, footer
LibrariesContainer(
  libraries = libraries,
  modifier = Modifier.fillMaxSize().padding(it),
  header = {
    item {
      Box(modifier = Modifier.fillMaxWidth().padding(16.dp), contentAlignment = Alignment.Center) {
        Text("Hello Header")
      }
    }
  },
  divider = { HorizontalDivider() },
  footer = {
    item {
      Box(modifier = Modifier.fillMaxWidth().padding(16.dp), contentAlignment = Alignment.Center) {
        Text("Hello Footer")
      }
    }
  }
)

@mikepenz mikepenz requested a review from Copilot March 28, 2025 11:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an API for providing a custom footer (with custom header and divider) to the LibrariesContainer component.

  • Introduces an "Advanced Usage" section in the README.
  • Provides sample Kotlin code demonstrating how to configure custom header, divider, and footer.
Files not reviewed (14)
  • aboutlibraries-compose-m2/api/aboutlibraries-compose-m2.klib.api: Language not supported
  • aboutlibraries-compose-m2/api/android/aboutlibraries-compose-m2.api: Language not supported
  • aboutlibraries-compose-m2/api/jvm/aboutlibraries-compose-m2.api: Language not supported
  • aboutlibraries-compose-m2/src/androidMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/AndroidLibraries.kt: Language not supported
  • aboutlibraries-compose-m2/src/commonMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/Libraries.kt: Language not supported
  • aboutlibraries-compose-m2/src/commonMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/SharedLibraries.kt: Language not supported
  • aboutlibraries-compose-m3/api/aboutlibraries-compose-m3.klib.api: Language not supported
  • aboutlibraries-compose-m3/api/android/aboutlibraries-compose-m3.api: Language not supported
  • aboutlibraries-compose-m3/api/jvm/aboutlibraries-compose-m3.api: Language not supported
  • aboutlibraries-compose-m3/src/androidMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/m3/AndroidLibraries.kt: Language not supported
  • aboutlibraries-compose-m3/src/commonMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/m3/Libraries.kt: Language not supported
  • aboutlibraries-compose-m3/src/commonMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/m3/SharedLibraries.kt: Language not supported
  • app-desktop/src/jvmMain/kotlin/m2/main.kt: Language not supported
  • app-desktop/src/jvmMain/kotlin/m3/main.kt: Language not supported

@mikepenz mikepenz merged commit eb43fb4 into develop Mar 28, 2025
3 checks passed
@mikepenz mikepenz deleted the feature/custom_footer branch March 28, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant