Skip to main content

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 FractionallySizedBox allows you to build a Flutter fractionally sized box widget using JSON. To know more about the fractionally sized box widget in Flutter, refer to the official documentation.

Properties

PropertyTypeDescription
alignmentStacAlignmentThe alignment of the child within the fractionally sized box.
widthFactordoubleThe fraction of the available width to use.
heightFactordoubleThe fraction of the available height to use.
childStacWidgetThe widget to display inside the fractionally sized box.

Example

StacFractionallySizedBox(
  alignment: StacAlignment.center,
  widthFactor: 0.5,
  heightFactor: 0.5,
  child: StacContainer(
    color: '#FF5733',
    child: StacText(data: 'Hello, World!'),
  ),
)