MainAxisAlignment enum
How the children should be placed along the main axis in a flex layout.
See also:
- Column, Row, and Flex, the flex widgets.
- RenderFlex, the flex render object.
Values
- start → const MainAxisAlignment
-
Place the children as close to the start of the main axis as possible.
If this value is used in a horizontal direction, a TextDirection must be available to determine if the start is the left or the right.
If this value is used in a vertical direction, a VerticalDirection must be available to determine if the start is the top or the bottom.
- end → const MainAxisAlignment
-
Place the children as close to the end of the main axis as possible.
If this value is used in a horizontal direction, a TextDirection must be available to determine if the end is the left or the right.
If this value is used in a vertical direction, a VerticalDirection must be available to determine if the end is the top or the bottom.
- center → const MainAxisAlignment
-
Place the children as close to the middle of the main axis as possible.
- spaceBetween → const MainAxisAlignment
-
Place the free space evenly between the children.
- spaceAround → const MainAxisAlignment
-
Place the free space evenly between the children as well as half of that space before and after the first and last child.
- spaceEvenly → const MainAxisAlignment
-
Place the free space evenly between the children as well as before and after the first and last child.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
MainAxisAlignment> - A constant List of the values in this enum, in order of their declaration.