Skip to content

Commit

Permalink
[android] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Mar 3, 2024
1 parent de43bb0 commit 6321165
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import androidx.compose.animation.togetherWith
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -270,18 +271,19 @@ internal fun Root(

ContainerProvider(container = container) {
EventListenerProvider(listener = listener) {
Box {
Box(Modifier.fillMaxSize()) {
if (embeddingVisibility && displayedPageBlock != null) {
AnimatedContent(
targetState = displayedPageBlock,
transitionSpec = {
fadeIn() togetherWith fadeOut()
},
label = "Embedding",
modifier = Modifier.fillMaxSize()
) {
PageBlockProvider(it) {
PageDataProvider(container = container, request = it.block.data?.httpRequest) {
Page(block = it.block, modifier)
Page(block = it.block)
}
}
}
Expand Down

0 comments on commit 6321165

Please sign in to comment.