ms
BottomSheetScaffold
BottomSheetScaffold( scaffoldState = bottomSheetScaffoldState, sheetContent = { LazyColumn { items(count = 10) { Text( text = "Item $it", modifier = Modifier.padding(vertical = 8.dp) ) } } }, ) { Box( modifier = Modifier.fillMaxSize().padding(it), contentAlignment = Alignment.Center ) { Button( onClick = { coroutineScope.launch { bottomSheetScaffoldState.bottomSheetState.expand() } }, ) { Text(text = "Open sheet") } } }
Albert Chang
bottomSheetScaffoldState
rememberBottomSheetScaffoldState( bottomSheetState = BottomSheetState(BottomSheetValue.Collapsed), )
BottomSheetState
rememberBottomSheetState
ModalBottomSheetLayout
A modern programming language that makes developers happier.