Body¶
Body is the primary surface canvas container of your Cortena application. You use this layout to place all your content (like lists, cards, articles) below the status bar / in the main body area of the screen.
Concept¶
Bodyautomatically usesModifier.fillMaxSize()to consume the maximum remaining space from its parent (like theColumninsideContentView).- Ideally,
Bodyis given the primary background of the application (e.g.,Modifier.background(Color(LocalColors.current.background))).
API Reference¶
Parameters¶
| Name | Data Type | Description |
|---|---|---|
modifier |
Modifier |
Standard Compose modifier used to stack actions like background, root padding, etc. |
content |
@Composable () -> Unit |
The child Composable elements contained inside the body. |