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.

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.

Properties

PropertyTypeDescription
fitStacBoxFitDefines how the child should be fitted within the box. Defaults to BoxFit.contain.
alignmentStacAlignmentDirectionalAligns the child within the box. Defaults to StacAlignmentDirectional.center.
clipBehaviorStacClipSpecifies whether and how the content should be clipped. Defaults to Clip.none.
childStacWidgetThe child widget, represented as a JSON object, to be positioned and scaled.

Example

StacFittedBox(
  fit: StacBoxFit.contain,
  alignment: StacAlignment.center,
  child: StacText(
    data: 'Hello, World!',
    style: StacTextStyle(
      fontSize: 20,
      color: StacColors.black,
    ),
  ),
)