Skip to main content

Expanded

The Stac Expanded allows you to build a Flutter expanded widget using JSON. To know more about the expanded widget in Flutter, refer to the official documentation.

Properties

PropertyTypeDescription
flexintThe flex factor to use for the expanded widget. Defaults to 1.
childMap<String, dynamic>?The widget to display inside the expanded widget.

Example JSON

{
  "type": "expanded",
  "flex": 2,
  "child": {
    "type": "text",
    "data": "Hello, World!"
  }
}
I