Skip to content

Commit fb5f982

Browse files
committed
Update SharedElementsWithNavigationSnippets.kt
1 parent 0349cd8 commit fb5f982

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ val listSnacks = listOf(
6464
Snack("Gingerbread", "", R.drawable.gingerbread),
6565
Snack("Honeycomb", "", R.drawable.honeycomb),
6666
)
67-
67+
// [START android_compose_shared_element_predictive_back]
6868
@Preview
6969
@Composable
7070
fun SharedElement_PredictiveBack() {
71-
// [START android_compose_shared_element_predictive_back]
7271
SharedTransitionLayout {
7372
val navController = rememberNavController()
7473
NavHost(
@@ -98,7 +97,6 @@ fun SharedElement_PredictiveBack() {
9897
}
9998
}
10099
}
101-
// [END android_compose_shared_element_predictive_back]
102100
}
103101

104102
@Composable
@@ -196,3 +194,4 @@ data class Snack(
196194
val description: String,
197195
@DrawableRes val image: Int
198196
)
197+
// [END android_compose_shared_element_predictive_back]

0 commit comments

Comments
 (0)