feat(ui): hide elements when searcher is expanded

This commit is contained in:
Cilly Leang 2026-02-27 22:56:44 +11:00
parent fb53422aac
commit a3dacda912
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,5 +1,8 @@
package moe.lava.banksia.ui.screens.map
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.add
@ -93,6 +96,12 @@ fun MapScreen(
},
)
AnimatedVisibility(
visible = !searchExpandedState,
label = "search-hider",
enter = fadeIn(),
exit = fadeOut(),
) {
Box(
modifier = Modifier
.fillMaxSize()
@ -124,3 +133,4 @@ fun MapScreen(
}
}
}
}