Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package androidx.compose.samples.crane.base

import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
Expand All @@ -26,6 +25,7 @@ import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
Expand Down Expand Up @@ -53,7 +53,6 @@ import androidx.compose.ui.unit.dp
import coil.compose.AsyncImage
import coil.request.ImageRequest

@OptIn(ExperimentalFoundationApi::class)
@Composable
fun ExploreSection(
widthSize: WindowWidthSizeClass,
Expand All @@ -72,7 +71,7 @@ fun ExploreSection(

LazyVerticalStaggeredGrid(
columns = StaggeredGridCells.Adaptive(200.dp),
modifier = Modifier.fillMaxWidth(),
modifier = Modifier.fillMaxWidth().imePadding(),
horizontalArrangement = Arrangement.spacedBy(8.dp),
content = {
itemsIndexed(exploreList) { _, exploreItem ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ private fun SearchContent(
)
)
},
label = "SearchContent"
) { targetState ->
when (targetState) {
CraneScreen.Fly -> FlySearchContent(
Expand Down