`animateItem()` in LazyLists seems to clip to boun...
# compose
s
animateItem()
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).
s
I'd say file a bug report so that they respond. The answer may be "WAI" but it'd be good to know regardless
s
Thanks, I'll do that.