Skaldebane
11/08/2024, 10:44 PManimateItem()
in LazyLists seems to clip to bounds during the fade-in/fade-out animation.
For cards with a shadow, this looks pretty bad as it cuts off the shadow.
One workaround might be to wrap the Composable in a container (e.g. Box
) that has enough padding to cover the shadow, but that's pretty cumbersome and won't work with elevation-based shadows (can't know how much will the shadow extrude predictably, it depends on the position from the central light source).
Is this a bug? I can't figure out anything meaningful, aside from completely foregoing animateItem()
and fading the items out manually through DisposableEffect
+ an extra intermediate list that keeps items in the lazy list until they animate away and get disposed (with lots of hacky code to make that work).Stylianos Gakis
11/08/2024, 10:47 PMSkaldebane
11/08/2024, 11:07 PM