Protected against bots by Yandex SmartCaptcha. Data processing policy
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)