axisAlignment property
- @Deprecated('Use alignment instead. ' 'This property provides full control over both axes, which is an improvement over the old axisAlignment. ' 'This feature was deprecated after v3.41.0-1.0.pre.')
final
Describes how to align the child along the axis that sizeFactor is modifying.
A value of -1.0 indicates the top when axis is Axis.vertical, and the start when axis is Axis.horizontal. The start is on the left when the text direction in effect is TextDirection.ltr and on the right when it is TextDirection.rtl.
A value of 1.0 indicates the bottom or end, depending upon the axis.
A value of 0.0 (the default) indicates the center for either axis value.
This property has been deprecated and superseded by alignment. Existing usages can be migrated to alignment as follows:
- If axis is Axis.horizontal, replace with
Alignment(axisAlignment ?? 0.0, -1.0). - If axis is Axis.vertical, replace with
Alignment(-1.0, axisAlignment ?? 0.0).
Implementation
@Deprecated(
'Use alignment instead. '
'This property provides full control over both axes, which is an improvement over the old axisAlignment. '
'This feature was deprecated after v3.41.0-1.0.pre.',
)
final double? axisAlignment;