Jakub Ledwon
03/21/2021, 9:18 PMinfiniteRepetable
: I'm using tween
as animation
and while having durationMillis < 1000*48
(48s) everything works perfectly fine, but while trying to animate with durationMillis
greater than 48s (which seems super weird), it justs snaps from initialValue
to targetValue
. Do you have any idea why is it not working correctly? Am i doing something wrong? Here is super simple Composable
that allows to reproduce my problem:
@Composable
fun Test() {
val infTrans = rememberInfiniteTransition()
val value = infTrans.animateFloat(
initialValue = 0f, targetValue = 1f, animationSpec = infiniteRepeatable(
animation = tween(1000 * 60, easing = LinearEasing),
)
)
Text(value.value.toString())
}
Doris Liu
03/21/2021, 9:51 PMinfiniteRepaetable
that was fixed in beta02. ๐Doris Liu
03/21/2021, 9:55 PMJakub Ledwon
03/21/2021, 10:00 PMRafs
03/21/2021, 10:08 PMDoris Liu
03/21/2021, 10:13 PM