groupAlignment property

double? groupAlignment
final

The vertical alignment for the group of destinations within the rail.

The NavigationRailDestinations are by default grouped together with the trailing widget, due to trailingAtBottom being false. The leading widget, can also be in the aligned group by setting leadingAtTop to false. If these widgets are not included in the group, they are placed at the top and bottom, respectively, of the rail and only the space between them is considered for the alignment.

The value must be between -1.0 and 1.0.

If groupAlignment is -1.0, then the items are aligned to the top. If groupAlignment is 0.0, then the items are aligned to the center. If groupAlignment is 1.0, then the items are aligned to the bottom.

The default is -1.0.

See also:

Implementation

final double? groupAlignment;