Created
June 14, 2023 02:23
-
-
Save mattrob33/f4ebd6477226354e798b352353b739e3 to your computer and use it in GitHub Desktop.
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 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