Skip to main content

ColoredBox

The Stac Colored Box allows you to build a Flutter colored box widget using JSON. To know more about the colored box widget in Flutter, refer to the official documentation.

Properties

PropertyTypeDescription
colorStringThe color to paint the background of the box.
childMap<String, dynamic>?The widget to display inside the colored box.

Example JSON

{
  "type": "coloredBox",
  "color": "#FF0000",
  "child": {
    "type": "text",
    "data": "Hello, World!"
  }
}
I