Skip to main content
The Stac Row allows you to build a Flutter Row widget using JSON. To know more about the row widget in Flutter, refer to the official documentation.

Properties

PropertyTypeDescription
mainAxisAlignmentStacMainAxisAlignmentHow the children should be placed along the main axis.
crossAxisAlignmentStacCrossAxisAlignmentHow the children should be placed along the cross axis.
mainAxisSizeStacMainAxisSizeHow much space should be occupied in the main axis.
textDirectionStacTextDirectionDetermines the order to lay children out horizontally and how to interpret start and end in the horizontal direction.
verticalDirectionStacVerticalDirectionThe order to lay children out vertically.
textBaselineStacTextBaselineThe baseline to use when aligning text.
spacingdoubleHow much space to place between children in the main axis.
childrenList<StacWidget>The widgets below this widget in the tree.

Example

StacRow(
  mainAxisAlignment: StacMainAxisAlignment.center,
  crossAxisAlignment: StacCrossAxisAlignment.center,
  spacing: 12,
  children: [
    StacImage(
      src: 'https://images.pexels.com/photos/2718416/pexels-photo-2718416.jpeg',
      width: 100,
    ),
    StacImage(
      src: 'https://images.pexels.com/photos/121629/pexels-photo-121629.jpeg',
      width: 100,
    ),
    StacImage(
      src: 'https://images.pexels.com/photos/1414642/pexels-photo-1414642.jpeg',
      width: 100,
    ),
  ],
)