Jonas
02/20/2024, 10:30 AMweight
with widthIn(max=ā¦)
with no effect.Stylianos Gakis
02/20/2024, 11:08 AMrequiredWidthIn
instead of just widthIn
?
weight might be setting the constraints to something outside of what your weightIn
specifies, and that one wonāt change the constraints to force the new size. requiredWidthIn
on the other hand should force the width despite incoming constraintsJonas
02/20/2024, 12:26 PMrequiredWidthIn
: The outcome is also not what I want, the element has the desired width but the weight calculation still uses the original width.Stylianos Gakis
02/20/2024, 12:32 PMJonas
02/20/2024, 12:44 PMStylianos Gakis
02/20/2024, 12:55 PMJonas
02/20/2024, 1:07 PMStylianos Gakis
02/20/2024, 1:11 PMJonas
02/20/2024, 1:29 PMLayout(content*s* = listOf(ā¦),
api, where you can pass multiple children and handle them separately?Stylianos Gakis
02/20/2024, 1:33 PMStylianos Gakis
02/20/2024, 1:37 PMLayout(
content = {
startSlot()
endSlot()
},
modifier = modifier,
) { measurables, constraints ->
val first = measurables.getOrNull(0)
val second = measurables.getOrNull(1)
into this
Layout(
contents = listOf(startSlot, endSlot),
modifier = modifier,
) { measurables, constraints ->
val first = measurables.getOrNull(0)?.getOrNull(0)
val second = measurables.getOrNull(1)?.getOrNull(0)
Which tbh I donāt really like, am I missing something?Jonas
02/20/2024, 1:43 PM