Stac FittedBox allows you to build the Flutter FittedBox widget using JSON. To know more about the FittedBox 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 |
|---|---|---|
fit | StacBoxFit | Defines how the child should be fitted within the box. Defaults to BoxFit.contain. |
alignment | StacAlignmentDirectional | Aligns the child within the box. Defaults to StacAlignmentDirectional.center. |
clipBehavior | StacClip | Specifies whether and how the content should be clipped. Defaults to Clip.none. |
child | StacWidget | The child widget, represented as a JSON object, to be positioned and scaled. |
Example
- Dart
- JSON
- Preview