google / flexbox-layout

Flexbox for Android
Apache License 2.0
18.25k stars 1.79k forks source link

First party support for Compose UI #632

Open saket opened 9 months ago

saket commented 9 months ago

While Compose UI has good interop APIs to work with Views, it'd be superb if flexbox-layout had a first party support for compose.

FlexboxRow(
  modifier = Modifier.fillMaxWidth(),
  flexWrap = FlexWrap.Wrap,
  divider = { … },
) {
  Text("…")
  Text("…")
  Text("…")
}

Version of the flexbox library

3.0.0

mtotschnig commented 4 months ago

Compose has FlowRow and FlowColumn, which should cover most of the functionality this library provides. Am I missing something?

saket commented 4 months ago

You're correct that it covers many of the functionalities, but not all of them. IIRC there's no equivalent for FlexDirection and FlexWrap.