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 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 wraps Align in a Scaffold body so it gets full-screen constraints.

Properties

PropertyTypeDescription
alignmentStacAlignmentDirectionalHow to align the child.
widthFactordoubleIf non-null, sets its width to the child’s width multiplied by this factor.
heightFactordoubleIf non-null, sets its height to the child’s height multiplied by this factor.
childStacWidgetThe widget below this widget in the tree.

Example

StacScaffold(
  body: StacAlign(
    child: StacContainer(
      color: '#FC5632',
      height: 250,
      width: 200,
      child: StacAlign(
        alignment: StacAlignmentDirectional.bottomCenter,
        child: StacText(
          data: 'Flutter',
          style: StacTextStyle(
            fontSize: 23,
            fontWeight: StacFontWeight.w600,
          ),
        ),
      ),
    ),
  ),
)