does anyone know how does the space-between works ...
# multiplatform
y
does anyone know how does the space-between works in compose ?
Copy code
@Stable
val SpaceBetween = object : HorizontalOrVertical {
    override val spacing = 0.dp

    override fun Density.arrange(
        totalSize: Int,
        sizes: IntArray,
        layoutDirection: LayoutDirection,
        outPositions: IntArray
    ) = if (layoutDirection == LayoutDirection.Ltr) {
        placeSpaceBetween(totalSize, sizes, outPositions, reverseInput = false)
    } else {
        placeSpaceBetween(totalSize, sizes, outPositions, reverseInput = true)
    }

    override fun Density.arrange(
        totalSize: Int,
        sizes: IntArray,
        outPositions: IntArray
    ) = placeSpaceBetween(totalSize, sizes, outPositions, reverseInput = false)

    override fun toString() = "Arrangement#SpaceBetween"
}