Skip to content

Instantly share code, notes, and snippets.

@egorikftp
Created August 8, 2021 09:15
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 egorikftp/597dfcc0c7c24bbe204cc8d8d38051f2 to your computer and use it in GitHub Desktop.
Save egorikftp/597dfcc0c7c24bbe204cc8d8d38051f2 to your computer and use it in GitHub Desktop.
@Composable
@ExperimentalMaterialApi
fun ModalBottomSheet() {
val modalBottomSheetState = rememberModalBottomSheetState(
initialValue = ModalBottomSheetValue.Hidden
)
val scope = rememberCoroutineScope()
ModalBottomSheetLayout(
sheetState = modalBottomSheetState,
sheetContent = {
// BottomSheet content
}
) {
// Content behind BottomSheet
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment