andbapps
09/24/2024, 12:03 PMSubcomposeLayout
that functions as a hybrid between BoxWithConstraints
and a Column
. Specifically the signature looks like this:
interface ColumnWithPlaceablesScope : ColumnScope {
val constraints: Constraints
val placeables: List<Placeable>
}
@Composable
fun ColumnWithPlaceables(
modifier: Modifier = Modifier,
verticalArrangement: Arrangement.Vertical = <http://Arrangement.Top|Arrangement.Top>,
horizontalAlignment: Alignment.Horizontal = Alignment.Start,
content: @Composable ColumnWithPlaceablesScope.() -> Unit
)
I want it to support everything in ColumnScope
e.g. Modifier.weight
, but because everything in Column.kt
is internal, I'm having to recreate everything from scratch. Is there a simpler way to do this that I'm missing?Alex Vanyo
09/24/2024, 4:59 PMandbapps
09/24/2024, 8:41 PM