, but there is a little delay that I don't like. More in thread...
robnik
05/13/2021, 5:47 PM
Maybe I'm asking less about how to to delete in the model, and more about how to start the animation. In the LaunchedEffect I start a delete animation if
dismissState.currentValue == DismissedToStart
. I think the delay I see is because currentValue is also animated. So I swipe to delete, then there is a fraction of a second waiting for currentValue, and then the item in the list shrinks away upward.
d
Doris Liu
05/13/2021, 8:33 PM
The visual delay seems like the result of a spring-based swipe animation w/ too small of a
VisibilityThreshold
- it's animating until it's within 0.01 pixel from the target, which can be perceived as a delay.
It's worth filing a bug on
SwipeToDismiss
to allow customization on the swipe animation/spring animation instead of using the default. Also, the default could also benefit from a