Pull down scaffold: fix widget edit mode top padding with bottom search bar

This commit is contained in:
MM20 2023-01-21 13:28:35 +01:00
parent 6567c77ba2
commit 5cb52863a1
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -369,6 +369,8 @@ fun PullDownScaffold(
else 0.dp
)
val editModePadding by animateDpAsState(if (isWidgetEditMode && bottomSearchBar) 56.dp else 0.dp)
val clockHeight by remember {
derivedStateOf {
if (fillClockHeight) {
@ -403,6 +405,7 @@ fun PullDownScaffold(
top = if (bottomSearchBar) 0.dp else 56.dp,
bottom = if (bottomSearchBar) 56.dp else 0.dp,
)
.padding(top = editModePadding)
) {
AnimatedVisibility(!isWidgetEditMode) {
Box(