-
Notifications
You must be signed in to change notification settings - Fork 201
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed the display position of EmptySearchResultBody to the center vertically. #1004
Conversation
Detekt check failed. Please run |
Thank you for this valuable contribution. I believe we need this implementation to comply with the design. The problem is that we need to modify the |
@Yamaton0827 -san @takahirom -san var favoriteFiltersSize by remember { mutableStateOf(0.dp) }
Column(modifier = modifier.fillMaxSize()) {
FavoriteFilters(
allFilterSelected = uiState.isAllFilterSelected,
day1FilterSelected = uiState.isDay1FilterSelected,
day2FilterSelected = uiState.isDay2FilterSelected,
backgroundColor = filterBackgroundColor,
onAllFilterChipClick = onAllFilterChipClick,
onDay1FilterChipClick = onDay1FilterChipClick,
onDay2FilterChipClick = onDay2FilterChipClick,
modifier = Modifier
.fillMaxWidth()
.background(favoriteFiltersBackgroundColor)
.onSizeChanged { size ->
favoriteFiltersSize = size.height.dp
},
)
when (uiState) {
is FavoritesSheetUiState.Empty -> {
EmptyView(
modifier = Modifier.wrapContentSize(Alignment.Center)
.padding(bottom = WindowInsets.statusBars.asPaddingValues().calculateTopPadding() + favoriteFiltersSize)
)
} ScreenshotIt's a little bit off from Figma, but what do you think of this change?
I don't mind if you use this code if you like. By the way, it would be helpful if you could run |
Thank you. That seems better, but I think it's not very good to add processing every time a component is added. However, if we handle it as an inset, I think it's relatively acceptable. |
Sorry, I didn't understand what you meant by treating it as an inset. |
I think this is a somewhat difficult problem. We also have this issue, and this PR could complicate things further. |
@takahirom -san, @Yamaton0827 -san |
@takahirom @naoele |
This pull request is closed because of a fundamental problem. Thank you for your review. |
Issue
Overview (Required)
In figma, UFO image and description is centered in whole screen (including app top bar and search filters bar).
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
show layout bounds
mode ON
Movie (Optional)