textBaseline property
Determines the order to lay children out horizontally and how to interpret
start
and end
in the horizontal direction.
Defaults to the ambient Directionality.
If textDirection is TextDirection.rtl, then the direction in which text flows starts from right to left. Otherwise, if textDirection is TextDirection.ltr, then the direction in which text flows starts from left to right.
If the direction is Axis.horizontal, this controls the order in which the children are positioned (left-to-right or right-to-left), and the meaning of the mainAxisAlignment property's MainAxisAlignment.start and MainAxisAlignment.end values.
If the direction is Axis.horizontal, and either the
mainAxisAlignment is either MainAxisAlignment.start or
MainAxisAlignment.end, or there's more than one child, then the
textDirection (or the ambient `Directionality
) must not be null.
If the direction is Axis.vertical, this controls the meaning of the crossAxisAlignment property's CrossAxisAlignment.start and CrossAxisAlignment.end values.
Determines the order to lay children out vertically and how to interpret
start
and end
in the vertical direction.
Defaults to VerticalDirection.down.
If the direction is Axis.vertical, this controls which order children are painted in (down or up), the meaning of the mainAxisAlignment property's MainAxisAlignment.start and MainAxisAlignment.end values.
If the direction is Axis.vertical, and either the mainAxisAlignment is either MainAxisAlignment.start or MainAxisAlignment.end, or there's more than one child, then the verticalDirection must not be null.
If the direction is Axis.horizontal, this controls the meaning of the crossAxisAlignment property's CrossAxisAlignment.start and CrossAxisAlignment.end values.
If aligning items according to their baseline, which baseline to use.
This must be set if using baseline alignment. There is no default because there is no way for the framework to know the correct baseline a priori.
Implementation
final TextBaseline? textBaseline;