Ankit Dubey
08/01/2021, 2:52 PMvar mProgress by remember { mutableStateOf(0F) }
val transition = updateTransition(targetState = mProgress, label = "")
Currently, On Button Click, I can easily change mProgress value and view will be animated
But
I’ve don’t want to animate on Button Clicked, rather the view should be animated as soon as it is displayed in screen. Tried a lot of things but no luck 😞
Any suggestion ?allan.conda
08/01/2021, 2:55 PManimatedFloatAsState()
?fatih
08/01/2021, 2:58 PMLaunchedEffect
val mProgress = remember { mutableStateOf(0F) }
LaunchedEffect(Unit) {
mProgress.value = 1f
}
Ankit Dubey
08/01/2021, 3:00 PM