This is a dirty POC of a LazyColumn that supports swipe-to-dismiss and reordering. This solution is dirty because items are only really removed from the list after the removal animation has finished. Even worse, we are not really waiting for the animation to end, coincidentally it takes about the same time that the swipe animation takes to settle
demo.mp4
Todos
- Add insert animations
- Support RTL
- Hoist the item states (entering, idle, exiting). A swipe should immediately call
onRemove
, after that the item should still be part of the list until it's gone (Hoisting the animation duration vs MutableTransitionState?)