Element of type Flex
Attribute | Description | Type |
---|---|---|
type | The identifier of the component | string ("flex") |
children | The children | component[] |
crossAxisAlignment | The alignment along the cross axis | string ("start", "end", "center", "stretch", "baseline") |
direction | The direction of the component (horizontal/vertical) | string ("horizontal", "vertical") |
fillParent | if true the flex will fill the main axis. Otherwise it will take the children size. | boolean |
horizontalDirection | In which direction the elements should be placed following the horizontal axis. | string ("ltr", "rtl") |
mainAxisAlignment | The alignment along the main axis | string ("start", "end", "center", "spaceBetween", "spaceAround", "spaceEvenly") |
padding | Element of type Padding | Padding |
scroll | If true the flex will scroll if there is too many item in the Main Axis. | boolean |
spacing | The multiplier of the base size for the minimal spacing | number |
textBaseline | A horizontal line used for aligning text. | string ("alphabetic", "ideographic") |
verticalDirection | How the objects should be aligned following the vertical axis. | string ("down", "up") |