Open
Description
Is it necessary to clip this layout to its bounds? If so, can you at least allow this to be optionally overridden so that a toolbar content such as the one below can show its shadow over the bodyContent?
CollapsingToolbarScaffold(
modifier = Modifier.fillMaxSize(),
state = rememberCollapsingToolbarScaffoldState(),
scrollStrategy = ScrollStrategy.ExitUntilCollapsed,
toolbarModifier = Modifier.fillMaxWidth(),
toolbar = {
TopAppBar(
backgroundColor = MaterialTheme.colors.background,
elevation = 16.dp,
modifier = Modifier
.fillMaxWidth()
.height(104.dp) // shrinks to 56.dp
.road(Alignment.BottomStart, Alignment.BottomStart)
.background(Color.White),
) { ... }
Box(modifier = Modifier.size(56.dp)) {
if (showNavigation) {
IconButton(onClick = { }, modifier = Modifier.align(Alignment.Center)) {
Icon(Icons.Default.ArrowBack, contentDescription = null)
}
}
}
},
body = { ... }
)