Skip to main content

Border Side

StacBorderSide allows you to define the Flutter BorderSide class using JSON. To know more about the BorderSide class in Flutter, refer to the official documentation.

info

BorderSide is used with the new individual border sides feature in StacBorder. You can now specify different border sides for top, right, bottom, and left individually.

Properties​

PropertyTypeDescription
colorColor?Defines color of the border.
widthdouble?Defines thickness of the border. (logical px).
styleBorderStyle?Defines the style of the border. Can be solid or none. Defaults to solid.
strokeAligndouble?Defines the relative position of the stroke on values range from -1.0 (inside) to 1.0 (outside).

Example​

{
"color": "#428AF5",
"width": 1.0,
"style": "solid",
"strokeAlign": 1.0
}

See Also​

  • Border - Learn about using individual border sides in StacBorder