crossAxisAlignment property

  1. @override
CrossAxisAlignment crossAxisAlignment
final

How the children should be placed along the cross axis.

For example, CrossAxisAlignment.center, the default, centers the children in the cross axis (e.g., horizontally for a Column).

When the cross axis is vertical (as for a Row) and the children contain text, consider using CrossAxisAlignment.baseline instead. This typically produces better visual results if the different children have text with different font metrics, for example because they differ in TextStyle.fontSize or other TextStyle properties, or because they use different fonts due to being written in different scripts.

Implementation

@override
final CrossAxisAlignment crossAxisAlignment;