Skip to Content

Margin

Applies an outer margin to its single child by the given EdgeInsets. Maps to margin applied directly to the child’s containing VisualElement.

Constructor

Margin

Creates an Margin element.

ParameterDescription
marginThe margin insets to apply.
childThe child element to apply margin to. Must not be null.
keyAn optional key for reconciliation identity.

Properties

Insets

The amount of margin to apply on each edge.

Methods

ShouldRebuild

Last updated on