The Stac Container allows you to build a Flutter Container widget using JSON. To know more about the container widget in Flutter, refer to the official documentation.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.
Properties
| Property | Type | Description |
|---|---|---|
| alignment | StacAlignment | The alignment of the child within the container. |
| padding | StacEdgeInsets | The padding to apply around the child. |
| decoration | StacBoxDecoration | The decoration to paint behind the child. |
| foregroundDecoration | StacBoxDecoration | The decoration to paint in front of the child. |
| color | StacColor | The color to paint behind the child. |
| width | double | The width of the container. |
| height | double | The height of the container. |
| constraints | StacBoxConstraints | Additional constraints to apply to the container. |
| margin | StacEdgeInsets | The margin to apply around the container. |
| transformAlignment | StacAlignment | The alignment of the transform origin. |
| child | StacWidget | The child widget of the container. |
| clipBehavior | StacClip | The clip behavior of the container. |
Example
- Dart
- JSON
- Preview