JustifyItems enum
The CSS justify-items property defines the default justify-self for all items of the box, giving them all a
default way of justifying each box along the appropriate axis.
Read more: MDN justify-items
Values
- normal → const JustifyItems
-
The effect of this keyword is dependent of the layout mode we are in:
- In block-level layouts, the keyword is a synonym of start.
- In absolutely-positioned layouts, the keyword behaved like start on replaced absolutely-positioned boxes, and as stretch on all other absolutely-positioned boxes.
- In table cell layouts, this keyword has no meaning as this property is ignored.
- In flexbox layouts, this keyword has no meaning as this property is ignored.
- In grid layouts, 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.
const JustifyItems('normal') - stretch → const JustifyItems
-
If the combined size of the items is less than the size of the alignment container, any auto-sized items have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container.
const JustifyItems('stretch') - center → const JustifyItems
-
The items are packed flush to each other toward the center of the alignment container.
const JustifyItems('center') - start → const JustifyItems
-
The item is packed flush to each other toward the start edge of the alignment container in the appropriate axis.
const JustifyItems('start') - end → const JustifyItems
-
The item is packed flush to each other toward the end edge of the alignment container in the appropriate axis.
const JustifyItems('end') - flexStart → const JustifyItems
-
For items that are not children of a flex container, this value is treated like start.
const JustifyItems('flex-start') - flexEnd → const JustifyItems
-
For items that are not children of a flex container, this value is treated like end.
const JustifyItems('flex-end') - selfStart → const JustifyItems
-
The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.
const JustifyItems('self-start') - selfEnd → const JustifyItems
-
The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis.
const JustifyItems('self-end') - left → const JustifyItems
-
The items are packed flush to each other toward the left edge of the alignment container. If the property's axis is not parallel with the inline axis, this value behaves like start.
const JustifyItems('left') - right → const JustifyItems
-
The items are packed flush to each other toward the right edge of the alignment container in the appropriate axis. If the property's axis is not parallel with the inline axis, this value behaves like start.
const JustifyItems('right') - anchorCenter → const JustifyItems
-
In the case of anchor-positioned elements, aligns the items to the center of the associated anchor element in the inline direction.
const JustifyItems('anchor-center') - baseline → const JustifyItems
-
Specifies participation in baseline alignment: aligns the alignment baseline of the box's baseline set with the corresponding baseline in the shared baseline set of all the boxes in its baseline-sharing group.
const JustifyItems('baseline') - firstBaseline → const JustifyItems
-
Specifies participation in first-baseline alignment: aligns the alignment baseline of the box's first baseline set with the corresponding baseline in the shared first baseline set of all the boxes in its baseline-sharing group. The fallback alignment is start.
const JustifyItems('first baseline') - lastBaseline → const JustifyItems
-
Specifies participation in last-baseline alignment: aligns the alignment baseline of the box's last baseline set with the corresponding baseline in the shared last baseline set of all the boxes in its baseline-sharing group. The fallback alignment is end.
const JustifyItems('last baseline') - safeCenter → const JustifyItems
-
const JustifyItems('safe center') - unsafeCenter → const JustifyItems
-
const JustifyItems('unsafe center') - legacyRight → const JustifyItems
-
const JustifyItems('legacy right') - legacyLeft → const JustifyItems
-
const JustifyItems('legacy left') - legacyCenter → const JustifyItems
-
const JustifyItems('legacy center') - inherit → const JustifyItems
-
const JustifyItems('inherit') - initial → const JustifyItems
-
const JustifyItems('initial') - revert → const JustifyItems
-
const JustifyItems('revert') - revertLayer → const JustifyItems
-
const JustifyItems('revert-layer') - unset → const JustifyItems
-
const JustifyItems('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<
JustifyItems> - A constant List of the values in this enum, in order of their declaration.