alignment property
Alignment
get
alignment
Controls how the artboard is aligned within its bounds.
When the artboard's dimensions don't match the widget size exactly, this determines where the artboard is positioned. For example:
- Alignment.center centers the artboard (default)
- Alignment.topLeft positions it at the top left
- Alignment.bottomRight positions it at the bottom right
The alignment is used in conjunction with fit to determine the final position of the artboard content.
Implementation
Alignment get alignment => _alignment;
set
alignment
(Alignment value)
Implementation
set alignment(Alignment value) {
if (_alignment == value) return;
_alignment = value;
notifyListeners();
}