Pull down scaffold: fix widget edit mode top padding with bottom search bar
This commit is contained in:
parent
6567c77ba2
commit
5cb52863a1
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user