Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.stac.dev/llms.txt

Use this file to discover all available pages before exploring further.

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

Properties

PropertyTypeDescription
maxHeightdoubleThe maximum height for the child if the parent’s height is unbounded. Defaults to double.infinity.
maxWidthdoubleThe maximum width for the child if the parent’s width is unbounded. Defaults to double.infinity.
childStacWidgetThe child widget represented as a JSON object.

Example

Example 1: Limited Box with Default Constraints

StacLimitedBox(
  child: StacContainer(
    width: 100,
    height: 100,
    color: StacColors.red,
  ),
)

Example 2: Limited Box with Custom Constraints

StacLimitedBox(
  maxHeight: 200.0,
  maxWidth: 300.0,
  child: StacText(
    data: 'Hello, World! from Limited Box',
    style: StacTextStyle(fontSize: 16, color: StacColors.black),
  ),
)