Shared element, not shared bounds

This commit is contained in:
MM20
2024-05-17 12:39:31 +02:00
parent 6793047577
commit d87c582dda
@@ -48,7 +48,7 @@ fun SearchResultGrid(
if (item != null) { if (item != null) {
GridItem( GridItem(
modifier = Modifier modifier = Modifier
.sharedBounds( .sharedElement(
rememberSharedContentState(item.key), rememberSharedContentState(item.key),
this@AnimatedContent, this@AnimatedContent,
) )