Skip to content

Instantly share code, notes, and snippets.

@akitikkx
Created March 16, 2022 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akitikkx/fe45c7e9c2fc1d70602c57a746710c2d to your computer and use it in GitHub Desktop.
Save akitikkx/fe45c7e9c2fc1d70602c57a746710c2d to your computer and use it in GitHub Desktop.
@ExperimentalMaterialApi
@Composable
fun ShowDetailScreen(...) {
...
val modalBottomSheetState = rememberModalBottomSheetState(ModalBottomSheetValue.Hidden)
...
ModalBottomSheetLayout(
sheetState = modalBottomSheetState,
sheetContent = {
Surface(
Modifier
.fillMaxWidth()
) {
ShowCastBottomSheetItem(showCast = selectedCastMemberState.value)
}
},
scrimColor = Color.Black.copy(alpha = 0.32f)
) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment