Pull down scaffold: don't scroll search bar out of view when it is focused

This commit is contained in:
MM20 2022-08-22 21:19:28 +02:00
parent f3d8d95d78
commit dcf5d3f8b1
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -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,