Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
riggaroo committed Dec 10, 2024
1 parent 35fd2a0 commit d779dfd
Showing 1 changed file with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ private fun DetailsContent(
// [END android_compose_shared_element_text_bounds_transform]
Text(
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus",
modifier = Modifier.skipToLookaheadSize()
)
}
Expand Down Expand Up @@ -332,7 +332,7 @@ private fun SharedElement_Clipping() {
rememberSharedContentState(key = "title"),
animatedVisibilityScope = this@AnimatedContent,

)
)
)
}
} else {
Expand Down Expand Up @@ -370,10 +370,10 @@ private fun SharedElement_Clipping() {
)
Text(
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sit amet lobortis velit. " +
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
"Lorem ipsum dolor sit amet, consectetur adipiscing elit." +
" Curabitur sagittis, lectus posuere imperdiet facilisis, nibh massa " +
"molestie est, quis dapibus orci ligula non magna. Pellentesque rhoncus " +
"hendrerit massa quis ultricies. Curabitur congue ullamcorper leo, at maximus"
)
}
}
Expand Down Expand Up @@ -673,17 +673,19 @@ fun CustomPredictiveBackHandle() {
mutableIntStateOf(0)
}
Column {
Slider(modifier = Modifier.height(48.dp),
Slider(
modifier = Modifier.height(48.dp),
value = seekableTransitionState.fraction,
onValueChange = {
coroutineScope.launch {
if (seekableTransitionState.currentState is Screen.Details){
if (seekableTransitionState.currentState is Screen.Details) {
seekableTransitionState.seekTo(it, Screen.Home)
} else {
// seek to the previously navigated index
seekableTransitionState.seekTo(it, Screen.Details(lastNavigatedIndex))
}
}})
}
})
SharedTransitionLayout(modifier = Modifier.weight(1f)) {
transition.AnimatedContent { targetState ->
when (targetState) {
Expand Down

0 comments on commit d779dfd

Please sign in to comment.