Margin is a function to help you organize the layout of your view. It creates a space between the component passed as parameter and the outside content by setting its margins to the given value.
See how the structure is represented:
|self||StyleComponent||✓||Component to receive the style.|
|margin||EdgeValue||✓||Margin to be applied to the component.|
Margin( margin = 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.