Ask the assistant
0/400
Your question is processed by an AI service and kept to improve answers. Do not enter personal data.

    ColoredBox

    Fills its area with a single color. A simple alternative to DecoratedBox when all you need is a background color.

    Type: single-child

    ColoredBox color:#36345E
      Text "On a background"

    Parameters

    Parameter Type Default Description
    color color transparent Fill color

    Examples

    Colored block

    SizedBox width:200 height:100
      ColoredBox color:#6C63FF
        Center
          Text "Content"

    See also

    • DecoratedBox — richer decoration (gradients, borders, rounded corners)