crossAxisAlignment property

CrossAxisAlignment crossAxisAlignment

How the children should be placed along the cross axis.

For example,, 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.


final CrossAxisAlignment crossAxisAlignment;