A modular Jetpack Compose list builder built with Material 3 — supports headers, dividers, and dynamic item rendering. Designed for fast prototyping and clean architecture.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}In your build.gradle.kts (app level):
dependencies {
implementation("com.github.Sived-Codes:KList-Assignment:<Tag>")
}Replace
<Tag>with the latest release tag, e.g.v1.0.0
KList
.padding(16.dp)
.header("Top Gainers")
.items(coinList) { coin ->
KListItem(coin = coin, onClick = { selectedCoin ->
println("Clicked: ${selectedCoin.name}")
})
}
.withDividers(Color.Gray.copy(alpha = 0.2f))
.render()- ✅ Easy to use with Jetpack Compose
- ✅ Material3 design system
- ✅ Supports headers and dividers
- ✅ Clean and fluent builder syntax
- ✅ Clickable item support
You can share the library using:
https://jitpack.io/#Sived-Codes/KList-Assignment
Prashant Deshmukh
GitHub: @Sived-Codes
Web: @Prashant Web
This project is open source and available under the MIT License.
