Skip to content

Commit d918044

Browse files
committed
Add comment to snippet about unmatched bounds
1 parent 5a44e5e commit d918044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/animations/sharedelement/BasicSharedElementSnippets.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ private fun UnmatchedBoundsExample() {
384384
animatedVisibilityScope = this@AnimatedContent
385385
)
386386
.border(2.dp, Color.Red)
387+
// This padding is placed after sharedBounds, but it doesn't match the
388+
// other shared elements modifier order, resulting in visual jumps
387389
.padding(12.dp)
388390

389391
) {

0 commit comments

Comments
 (0)