Skip to content

Commit

Permalink
Improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliyan Germanov committed Nov 18, 2021
1 parent a7ae404 commit 3ab8b6c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ private fun BoxWithConstraintsScope.UI(
modifier = Modifier
.fillMaxSize()
.padding(top = 16.dp)
.thenIf(listState.firstVisibleItemIndex > 0) {
//clip corners after header is gone
clip(Shapes.rounded32Top)
}
.clip(Shapes.rounded32Top)
.background(IvyTheme.colors.pure),
state = listState,
) {
Expand Down

0 comments on commit 3ab8b6c

Please sign in to comment.