Skip to content

Instantly share code, notes, and snippets.

@arcadefire
Last active September 12, 2021 17:19
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 arcadefire/4b85832ba031ced27a7a9d3669de1081 to your computer and use it in GitHub Desktop.
Save arcadefire/4b85832ba031ced27a7a9d3669de1081 to your computer and use it in GitHub Desktop.
Bottom sheet scaffold
@Composable
fun MyBottomSheet(
header: @Composable () -> Unit,
body: @Composable () -> Unit,
) {
Box {
Column(Modifier.fillMaxHeight()) {
header()
Box(Modifier.fillMaxWidth()) {
body()
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment