Padding

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

What is it?

Padding is a function to help you organize the layout of your view. It creates a space between the component passed as parameter and its content by setting its padding (style property) to the given value.

See how the structure is represented:

AttributeTypeRequiredDefinition
selfStyleComponentComponent to receive the style.
paddingEdgeValuePadding to be applied to the component.

How to use it?

Padding(
  padding = EdgeValue.all(40),
  self = Text("simple text")
    )