google / flexbox-layout

Flexbox for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First party support for Compose UI

saket opened this issue · comments

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

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

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