The Stac Align allows you to build a Flutter Align widget using JSON. To know more about the align widget in Flutter, refer to the official documentation. The playground centers the root widget; this example wrapsDocumentation Index
Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
Use this file to discover all available pages before exploring further.
Align in a Scaffold body so it gets full-screen constraints.
Properties
| Property | Type | Description |
|---|---|---|
| alignment | StacAlignmentDirectional | How to align the child. |
| widthFactor | double | If non-null, sets its width to the child’s width multiplied by this factor. |
| heightFactor | double | If non-null, sets its height to the child’s height multiplied by this factor. |
| child | StacWidget | The widget below this widget in the tree. |
Example
- Dart
- JSON
- Preview