Andrey Larionov
12/12/2023, 9:46 AMsuspend fun animateScrollToItem(
index: Int,
scrollOffset: Int = 0
) {
animateScrollScope.animateScrollToItem(index, scrollOffset)
}
function of LazyListState
doesn’t have animationSpec
parameter? As I can see it uses
suspend fun <T, V : AnimationVector> AnimationState<T, V>.animateTo(
targetValue: T,
animationSpec: AnimationSpec<T> = spring(),
sequentialAnimation: Boolean = false,
block: AnimationScope<T, V>.() -> Unit = {}
)
under the hood like
anim.animateTo(
target,
sequentialAnimation = (anim.velocity != 0f)
)
Zach Klippenstein (he/him) [MOD]
12/12/2023, 4:15 PMAndrey Larionov
12/12/2023, 4:16 PMZach Klippenstein (he/him) [MOD]
12/12/2023, 4:29 PM