-
-
Save arcadefire/4b85832ba031ced27a7a9d3669de1081 to your computer and use it in GitHub Desktop.
Bottom sheet scaffold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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