Protected against bots by Yandex SmartCaptcha. Data processing policy
Center
Centers its child. A special case of Align with
alignment:center
.
Type:
single-child
Center
Text "Centered"
Parameters
| Parameter | Type | Description |
|---|---|---|
widthFactor
|
double | Width multiplier relative to the child |
heightFactor
|
double | Height multiplier relative to the child |
Examples
Centered content in a fixed-size box
SizedBox width:300 height:200
ColoredBox color:#36345E
Center
Text "Centered"
See also
- Align — arbitrary alignment