Beagle v1.7 is no longer actively maintained. The documented version you are viewing may contain deprecated functionality. For up-to-date documentation, see the latest version .
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:
Attribute | Type | Required | Definition |
---|---|---|---|
self | StyleComponent | ✓ | Component to receive the style. |
padding | EdgeValue | ✓ | Padding to be applied to the component. |
Padding(
padding = EdgeValue.all(40),
self = Text("simple text")
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.