align property
Alignment of the text within its bounding box.
This property combines both the horizontal and vertical alignment. For
example, setting this property to Align.center
will make the text
centered inside its box. Similarly, Align.bottomRight
will render the
text that's aligned to the right and to the bottom of the box.
Custom alignment anchors are supported too. For example, if this property
is set to Anchor(0.1, 0)
, then the text would be positioned such that
its every line will have 10% of whitespace on the left, and 90% on the
right. You can use an AnchorEffect
to make the text gradually transition
between different alignment values.
Implementation
Anchor align;