Kyant
07/21/2025, 9:44 AMprintln("a: $progress")
works normally, but println("b: $progress")
will miss following values, leading to UI not updated. progress
is the value of float Animatable
.Nitesh Singh
07/21/2025, 11:27 AMKyant
07/21/2025, 12:14 PMKyant
07/21/2025, 12:15 PMtad
07/21/2025, 11:40 PMreading a state insideIfwill only cause the layer properties update without triggering recomposition and relayout.block
progress
isn't backed by mutable state, then you should use the other overload:
.graphicsLayer(
translationX = ...,
translationY = ...
)
tad
07/21/2025, 11:42 PMprogress
isn't marked as a "State read" in your IDE so I think this is the case.Kyant
07/22/2025, 2:53 AManimation.value
which is a mutable state, the issue still persists