is this a known issue?
EDIT: moved source snippets to thread.
trashcoder
10/08/2022, 10:41 AM
source snippets:
Copy code
var brightness by remember(dimming.brightness) { mutableStateOf(dimming.brightness) }
...
Slider(
value = brightness,
onValueChange = {
println("onValueChange: $it")
brightness = it
},
modifier = Modifier.weight(1f),
valueRange = dimming.range,
onValueChangeFinished = {
println("onValueChangeFinished: $brightness")
onLightStateChange.invoke(light.id, light.isOn, brightness)
}
)
r
Rick Regan
10/10/2022, 12:59 AM
There is this issue “Inconsistent order of onValueChange and onValueChangeFinished callbacks from Slider” which is indirectly marked closed (through the one marked its duplicate). Maybe you’re on an old version or this hasn’t really been fixed.
t
trashcoder
10/10/2022, 8:05 PM
thanks for your answer! i will check my version and try to update.
trashcoder
10/13/2022, 8:43 PM
i updated gradle plugin "org.jetbrains.compose" from 1.1.1 to 1.2.0 and now the error is gone. thanks again! :)