alignment property
How to align the picture within its parent widget.
The alignment aligns the given position in the picture to the given position in the layout bounds. For example, an Alignment alignment of (-1.0, -1.0) aligns the image to the top-left corner of its layout bounds, while a Alignment alignment of (1.0, 1.0) aligns the bottom right of the picture with the bottom right corner of its layout bounds. Similarly, an alignment of (0.0, 1.0) aligns the bottom middle of the image with the middle of the bottom edge of its layout bounds.
If the alignment is TextDirection-dependent (i.e. if it is a AlignmentDirectional), then a TextDirection must be available when the picture is painted.
Defaults to Alignment.center.
See also:
- Alignment, a class with convenient constants typically used to specify an AlignmentGeometry.
- AlignmentDirectional, like Alignment for specifying alignments relative to text direction.
Implementation
final AlignmentGeometry alignment;