I want to extend my Scaffold body behind the AppBar because of the curve in the bottom right corner:
I tried Modifier.offset(y = (-25).dp). It works fine, but the BG image not fills the area behind the bottom navbar anymore:
Scaffold( topBar = { ... }, )
{ padding ->
Box(
Modifier.padding(padding),
contentAlignment = Alignment.TopCenter
) {
Box(
modifier = Modifier
.fillMaxSize()
.offset(y = (-25).dp), // BG image behind AppBar
) {
Image(
modifier = Modifier.fillMaxSize(),
painter = painterResource(R.drawable.bg),
contentDescription = null,
contentScale = ContentScale.FillBounds
)
}
How can I do both?

