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