Skip to content

Conversation

@revonateB0T
Copy link
Collaborator

No description provided.

@revonateB0T revonateB0T marked this pull request as ready for review February 13, 2025 05:01
@revonateB0T revonateB0T requested a review from FooIbar February 13, 2025 05:03
isRefreshing = isRefreshing,
modifier = Modifier.align(Alignment.TopCenter).padding(top = contentPadding.calculateTopPadding())
.offset { IntOffset(0, searchBarOffsetY()) },
modifier = with(scrollBehavior) { Modifier.align(Alignment.TopCenter).padding(top = contentPadding.calculateTopPadding()).offset { IntOffset(0, scrollBehavior.scrollOffset.roundToInt()) } },
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
modifier = with(scrollBehavior) { Modifier.align(Alignment.TopCenter).padding(top = contentPadding.calculateTopPadding()).offset { IntOffset(0, scrollBehavior.scrollOffset.roundToInt()) } },
modifier = Modifier.align(Alignment.TopCenter).padding(top = contentPadding.calculateTopPadding()).offset { IntOffset(0, scrollBehavior.scrollOffset.roundToInt()) },

fabHidden = it
},
title = suitableTitle,
searchFieldHint = searchBarHint,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
searchFieldHint = searchBarHint,
searchFieldHint = searchBarHint,
searchBarState = searchBarState,
scrollBehavior = scrollBehavior,

fun AnimatedVisibilityScope.GalleryListScreen(lub: ListUrlBuilder, navigator: DestinationsNavigator) = Screen(navigator) {
val searchFieldState = rememberTextFieldState()
val searchBarState = rememberSearchBarState()
val scrollBehaviour = SearchBarDefaults.enterAlwaysSearchBarScrollBehavior()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
val scrollBehaviour = SearchBarDefaults.enterAlwaysSearchBarScrollBehavior()
val scrollBehavior = SearchBarDefaults.enterAlwaysSearchBarScrollBehavior()

onSearch = {
hideSearchView()
onApplySearch()
},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
},
},
modifier = Modifier.widthIn(max = M3SearchBarMaxWidth).fillMaxWidth(),

topBar = {
TopSearchBar(
state = searchBarState,
inputField = inputField,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
inputField = inputField,
inputField = inputField,
modifier = Modifier.padding(horizontal = 8.dp),

)
ExpandedFullScreenSearchBar(
state = searchBarState,
inputField = inputField,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
inputField = inputField,
inputField = inputField,
windowInsets = { SearchBarDefaults.windowInsets },

trailingContent = it.canDelete.ifTrueThen {
IconButton(onClick = { deleteKeyword(it.keyword) }) {
filter?.invoke()
LazyColumn(modifier = Modifier.fillMaxSize()) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LazyColumn(modifier = Modifier.fillMaxSize()) {
LazyColumn(
modifier = Modifier.fillMaxSize(),
contentPadding = WindowInsets.safeDrawing.only(WindowInsetsSides.Bottom).asPaddingValues(),
) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants