MainAxisAlignment

enum MainAxisAlignment : Enum<MainAxisAlignment>

Used to specify the alignment of a layout's children, in main axis direction.

Entries

SpaceAround
Link copied to clipboard
SpaceAround(Arrangement.SpaceAround)
Place children such that they are spaced evenly across the main axis, including free space before the first child and after the last child, but half the amount of space existing otherwise between two consecutive children.
SpaceBetween
Link copied to clipboard
SpaceBetween(Arrangement.SpaceBetween)
Place children such that they are spaced evenly across the main axis, without free space before the first child or after the last child.
SpaceEvenly
Link copied to clipboard
SpaceEvenly(Arrangement.SpaceEvenly)
Place children such that they are spaced evenly across the main axis, including free space before the first child and after the last child.
End
Link copied to clipboard
End(Arrangement.Bottom)
Place children such that they are as close as possible to the end of the main axis.
Start
Link copied to clipboard
Start(Arrangement.Top)
Place children such that they are as close as possible to the start of the main axis.
Center
Link copied to clipboard
Center(Arrangement.Center)
Place children such that they are as close as possible to the middle of the main axis.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int