Pull down scaffold: don't scroll search bar out of view when it is focused
This commit is contained in:
@@ -372,7 +372,8 @@ fun PullDownScaffold(
|
||||
.wrapContentHeight()
|
||||
.windowInsetsPadding(WindowInsets.safeDrawing)
|
||||
.padding(8.dp)
|
||||
.offset { IntOffset(0, searchBarOffset.value.toInt()) }
|
||||
.offset { IntOffset(0,
|
||||
if (searchBarFocused) 0 else searchBarOffset.value.toInt()) }
|
||||
.offset {
|
||||
IntOffset(
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user