crossAxisAlignment property
How the children within a run should be aligned relative to each other in the cross axis.
For example, if this is set to WrapCrossAlignment.end, and the direction is Axis.horizontal, then the children within each run will have their bottom edges aligned to the bottom edge of the run.
Defaults to WrapCrossAlignment.start.
See also:
- alignment, which controls how the children within each run are placed relative to each other in the main axis.
- runAlignment, which controls how the runs are placed relative to each other in the cross axis.
Implementation
WrapCrossAlignment get crossAxisAlignment => _crossAxisAlignment;
Implementation
set crossAxisAlignment (WrapCrossAlignment value) {
if (_crossAxisAlignment == value) {
return;
}
_crossAxisAlignment = value;
markNeedsLayout();
}