AlignItems enum
The CSS align-items property sets the align-self value on all direct children as a group. In flexbox, it controls
the alignment of items on the cross axis. In grid layout, it controls the alignment of items on the block axis within
their grid areas.
Read more: MDN align-items
Values
- normal → const AlignItems
-
The effect of this keyword is dependent of the layout mode we are in:
- In absolutely-positioned layouts, the keyword behaves like start on replaced absolutely-positioned boxes, and as stretch on all other absolutely-positioned boxes.
- In static position of absolutely-positioned layouts, the keyword behaves as stretch.
- For flex items, the keyword behaves as stretch.
- For grid items, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic size where it behaves like start.
- The property doesn't apply to block-level boxes, and to table cells.
const AlignItems('normal') - stretch → const AlignItems
-
If the item's cross-size is auto, the used size is set to the length necessary to be as close to filling the container as possible, respecting the item's width and height limits. If the item is not auto-sized, this value falls back to flex-start, and to self-start or self-end if the container's align-content is first baseline (or baseline) or last baseline.
const AlignItems('stretch') - center → const AlignItems
-
The flex items' margin boxes are centered within the line on the cross-axis. If the cross-size of an item is larger than the flex container, it will overflow equally in both directions.
const AlignItems('center') - start → const AlignItems
-
The items are packed flush to each other toward the start edge of the alignment container in the appropriate axis.
const AlignItems('start') - end → const AlignItems
-
The items are packed flush to each other toward the end edge of the alignment container in the appropriate axis.
const AlignItems('end') - baseline → const AlignItems
-
All flex items are aligned such that their flex container baselines align. The item with the largest distance between its cross-start margin edge and its baseline is flushed with the cross-start edge of the line.
const AlignItems('baseline') - inherit → const AlignItems
-
const AlignItems('inherit') - initial → const AlignItems
-
const AlignItems('initial') - revert → const AlignItems
-
const AlignItems('revert') - revertLayer → const AlignItems
-
const AlignItems('revert-layer') - unset → const AlignItems
-
const AlignItems('unset')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The css value
final
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<
AlignItems> - A constant List of the values in this enum, in order of their declaration.