Colton Idle
02/18/2022, 3:13 AMsetContent {
Scaffold(bottomBar = {
Box(Modifier.height(56.dp).background(Color.Blue).fillMaxWidth()) {
Text(text = "BottomBar")
}
}) {
val bottomSheetState = rememberModalBottomSheetState(initialValue = ModalBottomSheetValue.Hidden)
val scope = rememberCoroutineScope()
ModalBottomSheetLayout(sheetState = bottomSheetState, sheetContent = {
Column(Modifier.fillMaxSize().background(Color.Green)
) {
Text(text = "BottomSheet")
}
}) {
Column(Modifier.fillMaxSize().background(Color.Red)
) {
Text(text = "ScreenA")
Button(onClick = {
scope.launch {
bottomSheetState.show()
}
}) {
Text(text = "Open Bottom Sheet")
}
}
}
}
}
content
in a ScaffoldLayout
be drawn ontop of bottomBar
in any way?
private fun ScaffoldLayout(
isFabDocked: Boolean,
fabPosition: FabPosition,
topBar: @Composable () -> Unit,
content: @Composable (PaddingValues) -> Unit,
snackbar: @Composable () -> Unit,
fab: @Composable () -> Unit,
bottomBar: @Composable () -> Unit
) {
tad
02/18/2022, 5:10 AMNathan Castlehow
02/21/2022, 1:12 AMColton Idle
02/21/2022, 1:16 AM