Yan Pujante
05/22/2022, 3:53 PMSlider
within a row does not work if the other elements in the row change sizes (see attached screenshot).
Code that demonstrates the behavior
fun main() = singleWindowApplication {
var zoom by remember { mutableStateOf(1f) }
Row {
Text(text = "Zoom = ${zoom}")
// Text(text = "Hello") // using a "static" text fixes the issue
Slider(value = zoom, valueRange = 0.25f..1.5f, onValueChange = { zoom = it })
}
}
Is this an expected behavior or is this a bug that I should report somewhere?Fudge
05/22/2022, 6:56 PMxxfast
05/22/2022, 9:57 PMDragos Rachieru
05/23/2022, 2:16 PM