Archie07/11/2021, 2:14 PM
holder for the font size? Just would want to be sure that this is the correct way since with `View`s (Correct me if I’m wrong), animating the font size directly isn’t the suggested (optimize) way of doing it.
and it ssems that the Label animation works directly with the `TextStyle`:
So I guess its fine to do the same thing as well?
val labelAnimatedStyle = lerp( MaterialTheme.typography.subtitle1, MaterialTheme.typography.caption, labelProgress )
Doris Liu07/20/2021, 9:23 PM
Archie07/22/2021, 2:39 PM
to replicate the animation but I can’t seem to wrap around how to seek the
base on the current Swipe offset. I could easily create the expanding card with swiping, but I can’t figure out how to combine the swiping card animation with all other animation. Right now, I am simply computing the current progress of the swipe by:
And using this
val swipeProgress = swipeableState.offset.value / expandedCardOffset
Do you have any advice? Thank in advnace.
val appbarOffset by animateDpAsState( targetValue = lerp(0.dp, 25.dp, swipeProgress.coerceAtLeast(0f)), )
Doris Liu07/22/2021, 7:00 PM
Archie07/23/2021, 1:23 PM