https://kotlinlang.org logo
#compose
Title
# compose
j

John O'Reilly

03/22/2023, 8:02 PM
Migrating from accompanist
FlowRow
to one in core Compose....this is what I had previously. From https://android-developers.googleblog.com/2023/03/whats-new-in-jetpack-compose-march-23-release.html, it seems equivalent is now
horizontalArrangement = Arrangement.spacedBy(8.dp)
but with that I'm not see any vertical spacing.
Copy code
FlowRow(crossAxisSpacing = 8.dp) {
    session.tags.forEach { tag ->
        Chip(tag)
    }
}
b

Ben Trengrove [G]

03/22/2023, 8:26 PM
WIP migration guide is here. Does that help? https://github.com/google/accompanist/pull/1494/files
j

John O'Reilly

03/22/2023, 8:31 PM
thanks, looks like this is what I need
m

mario

03/26/2023, 7:08 AM
thanks, but the last row seems to also receive padding bottom, the idea is to give padding only between columns and rows
u

Uchenna Okoye

03/27/2023, 8:34 PM
This will be fixed in the next alpha release: M7 alpha02
m

mario

06/22/2023, 1:56 PM
It is fixed in compose 1.5, currently in RC version
322 Views