Jetpack Compose LazyColumn Add Divider

December 16, 2021
LazyColumn() {
    items(places) { place ->
        PlaceItem(
            modifier = Modifier.padding(vertical = 4.dp),
            icon = place.getIcon(),
            name = place.name ?: "",
            address = place.address ?: "")

        // Divider(color = Color.Black, thickness = 1.dp)
        Divider(color = MaterialTheme.colors.onSurface.copy(alpha = 0.2f))
    }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.