Rick Regan10/05/2022, 6:14 PM
with keys and have
on my items. The list of items is immutable inside a mutableStateOf(). I can delete items one at a time (replacing with a new immutable list) and the animations appear to work as expected. However, I am confused by this comment from the documentation on animateItemPlacement(): “Aside from reorderings, item animations for additions and removals is currently in development.” (I am using Compose 1.3.0-beta03 and Material 3 1.0.0-beta03, the version prior to what just came out today.) Is that note out of date, does it not apply to my case, or am I just lucky?
Albert Chang10/06/2022, 1:46 AM
Rick Regan10/06/2022, 2:01 AM
I see the items moving to fill in the deleted space (it could be items above or below, depending on where I am scrolled to and which item I delete). I guess I don’t know what “animations for additions and removals” is then, because I got everything I thought I wanted.
Albert Chang10/06/2022, 2:03 AM
Rick Regan10/06/2022, 2:16 AM