Jetpack Compose Row Flow to Next Line (Auto Multiple Rows)

May 6, 2022

Use Accompanist.FlowRow.

val albumNames = listOf("Rise and Shine", "Winter of the South", "Kind of", "I dunno what to say", "Hell on earth")

FlowRow {
    for (albumName in albumNames) {
        Chip(modifier = Modifier.padding(end = 4.dp), onClick = {}) {
            Text(albumName)
        }
    }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.