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

Properties

PropertyTypeDescription
paddingStacEdgeInsetsThe amount of space by which to inset the child. Examples: "padding": 12 for uniform padding, "padding": {"left": 0, "right": 0} for specific sides, or {"padding": [8, 12, 8, 12]} for left, top, right, bottom.
childStacWidgetThe widget below this widget in the tree.

Example

StacPadding(
  padding: StacEdgeInsets(left: 0, right: 0),
  child: StacContainer(
    color: '#672BFF',
    clipBehavior: StacClip.hardEdge,
    height: 75,
    width: 700,
  ),
)