BackgroundBox

@Composable
fun BackgroundBox(modifier: Modifier = Modifier, contentAlignment: Alignment = Alignment.TopStart, propagateMinConstraints: Boolean = false, content: @Composable BoxScope.() -> Unit)

A composable function that creates a Box with a background color that fills the maximum size.

Parameters

modifier

The Modifier to be applied to the Box.

contentAlignment

The Alignment of the content inside the Box.

propagateMinConstraints

Whether the minimum constraints should be propagated.

content

The content to be displayed inside the Box.