Expanded

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

What is it?

Expanded is a function to help you organize the layout of your view. It makes the component passed as parameter expand its size to all the available space. This is achieved by setting width to 100%, height to 100%, alignSelf to STRETCH and grow to 1.0.

See how the structure is represented:

AttributeTypeRequiredDefinition
selfStyleComponentComponent to receive the style.

How to use it?

Expanded(
    self = Text(text = "simple text")
)