title | weight | description |
---|---|---|
Expanded |
338 |
You will find here the description of the Expanded function and its attributes details |
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:
Attribute | Type | Required | Definition |
---|---|---|---|
self | StyleComponent | ✓ | Component to receive the style. |
{{< tabs id="T145" >}} {{% tab name="JSON" %}}
{{% playground file="expanded.json" language="pt" %}} {{% /tab %}}
{{% tab name="Kotlin DSL" %}}
Expanded(
self = Text(text = "simple text")
)
{{% /tab %}} {{< /tabs >}}