Skip to content

RootContainer

@Composable



fun RootContainer(modifier: Modifier = Modifier, content: @Composable



 () -> Unit)

The top-level layout node for a screen's content, centered within the full screen bounds.

ComposeScreen and ComposeContainerScreen wrap their start content in this composable so content is measured/placed like a Box (children stacked and top-start-aligned by default) while the whole subtree stays centered on screen.

Parameters

  • modifier: Additional modifiers applied to the content layout node.