You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: CanonicalLayouts/list-detail-compose/app/src/main/java/com/example/listdetailcompose/ui/ListDetailSample.kt
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -302,18 +302,21 @@ private fun DetailContent(
302
302
) {
303
303
if (definedWord != null) {
304
304
305
-
val imageModifier = Modifier.padding(horizontal = 8.dp)
306
-
if (!isListAndDetailVisible && isDetailVisible) {
307
-
with(sharedTransitionScope) {
308
-
val state = rememberSharedContentState(key = definedWord.word)
309
-
imageModifier.then(
310
-
Modifier.sharedElement(
311
-
state,
312
-
animatedVisibilityScope = animatedVisibilityScope
313
-
)
314
-
)
315
-
}
316
-
}
305
+
val imageModifier = Modifier
306
+
.padding(horizontal = 8.dp)
307
+
.then(
308
+
if (!isListAndDetailVisible && isDetailVisible) {
309
+
with(sharedTransitionScope) {
310
+
val state = rememberSharedContentState(key = definedWord.word)
0 commit comments