File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
core/designsystem/src/main/java/io/github/shinhyo/brba/core/ui Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,12 @@ fun SharedTransitionScope.BrbaCharacterCard(
6060 shape = RoundedCornerShape (8 .dp),
6161 modifier = modifier
6262 .aspectRatio(1f / character.ratio)
63- .clickable { onCharacterClick.invoke(character) },
63+ .clickable { onCharacterClick.invoke(character) }
64+ .brbaSharedElement(
65+ isLocalInspectionMode = LocalInspectionMode .current,
66+ animatedVisibilityScope = animatedVisibilityScope,
67+ rememberSharedContentState(key = " character_${character.charId} _card" ),
68+ ),
6469 ) {
6570 Box (
6671 modifier = Modifier
@@ -75,12 +80,7 @@ fun SharedTransitionScope.BrbaCharacterCard(
7580 contentDescription = null ,
7681 contentScale = ContentScale .Crop ,
7782 modifier = Modifier
78- .fillMaxSize()
79- .brbaSharedElement(
80- isLocalInspectionMode = LocalInspectionMode .current,
81- animatedVisibilityScope = animatedVisibilityScope,
82- rememberSharedContentState(key = " character_${character.charId} _card" ),
83- ),
83+ .fillMaxSize(),
8484 )
8585 Box (
8686 modifier = Modifier
You can’t perform that action at this time.
0 commit comments