Skip to content

Instantly share code, notes, and snippets.

@mattrob33
Created June 14, 2023 02:23
Show Gist options
  • Save mattrob33/f4ebd6477226354e798b352353b739e3 to your computer and use it in GitHub Desktop.
Save mattrob33/f4ebd6477226354e798b352353b739e3 to your computer and use it in GitHub Desktop.
@Composable
fun MaxSizeBox(
modifier: Modifier = Modifier,
contentAlignment: Alignment = Alignment.TopStart,
content: @Composable BoxScope.() -> Unit
) {
Box(
modifier = modifier.fillMaxSize(),
contentAlignment = contentAlignment,
) {
content()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment