Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Migrate to TopSearchBar#2148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
revonateB0T wants to merge9 commits intomain
base:main
Choose a base branch
Loading
fromzoom
Open

Migrate to TopSearchBar#2148

revonateB0T wants to merge9 commits intomainfromzoom

Conversation

@revonateB0T
Copy link
Collaborator

No description provided.

@revonateB0TrevonateB0T marked this pull request as ready for reviewFebruary 13, 2025 05:01
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
valscrollBehaviour=SearchBarDefaults.enterAlwaysSearchBarScrollBehavior()
valscrollBehavior=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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@FooIbarFooIbarFooIbar left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@revonateB0T@FooIbar

[8]ページ先頭

©2009-2025 Movatter.jp