given an offset, how do i align my composable in a...
# compose
o
given an offset, how do i align my composable in a way that it is centered to that offset?
I know the offset from the slider and now want to show the label on top of slider thumb in a way that is centered to the thumb position
e
Copy code
Modifier.layout { measureable, constraints ->
    val placeable = measureable.measure(constraints)
    layout(placeable.width, placeable.height) {
        place(offsetX - placeable.width / 2, 0)
    }
}
d
Do you have a full implementation for a slider with a label?