MaterialBox

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

A composable function that applies Material Theming and creates a themed Box with an applied background color.

Parameters

colors

The colors to be used in the Material Theme.

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.