Column

You will find here the description of the Column function and its attributes details

What is it?

Column is a function to help you organize the layout of your view. It creates a Container that displays its content in a vertical line. This is equivalent to create a Container with flexDirection equal to COLUMN.

See how the structure is represented:

AttributeTypeRequiredDefinition
childrenList <ServerDriven Component>The content of this Container, i.e. its children.
contextContextDataThe context linked to this widget.
onInitList<Action>It is a parameter that allows you to define a list of actions to be performed when the Widget is displayed.
styleIdStringRefers to a locally configured style that it will be applied on the container.
reverseBooleanDisplays its elements from bottom to top. Default is false.

How to use it?

Column(
    children = listOf(
        Text(text = "simple text")
    )
)