contentAlignment property

MainAxisAlignment? contentAlignment
final

Alignment of the button content along the main axis.

Controls how the icon and label are distributed within the button. Use MainAxisAlignment.spaceBetween to push the icon to one side and the label to the other in a full-width layout (set shrinkWrap to false).

Defaults to null, which behaves as MainAxisAlignment.center.

Implementation

final MainAxisAlignment? contentAlignment;