Documentation Index
Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
Use this file to discover all available pages before exploring further.
The Stac EdgeInsets class represents padding or margin values. It specifies offsets in each of the four directions (left, top, right, bottom) in logical pixels.
Properties
| Property | Type | Description |
|---|
| left | double? | Left edge inset in logical pixels. |
| top | double? | Top edge inset in logical pixels. |
| right | double? | Right edge inset in logical pixels. |
| bottom | double? | Bottom edge inset in logical pixels. |
Constructors
All Edges Equal
Symmetric (Horizontal/Vertical)
StacEdgeInsets.symmetric(
horizontal: 16.0,
vertical: 8.0,
)
Only Specific Edges
StacEdgeInsets.only(
left: 8.0,
top: 16.0,
right: 8.0,
bottom: 24.0,
)
Horizontal Only
StacEdgeInsets.horizontal(16.0)
Vertical Only
StacEdgeInsets.vertical(16.0)
Example Usage
StacPadding(
padding: StacEdgeInsets.all(16.0),
child: StacText(data: 'Padded content'),
)
With Container
StacContainer(
padding: StacEdgeInsets.symmetric(
horizontal: 24.0,
vertical: 16.0,
),
margin: StacEdgeInsets.only(bottom: 8.0),
child: StacText(data: 'Container content'),
)