MarkdownListItemCrossAxisAlignment enum

Enumeration of alignment strategies for the cross axis of list items.

Inheritance
Available extensions

Values

baseline → const MarkdownListItemCrossAxisAlignment

Uses CrossAxisAlignment.baseline for the row the bullet and the list item are placed in.

This alignment will ensure that the bullet always lines up with the list text on the baseline.

However, note that this alignment does not support intrinsic height measurements because RenderFlex does not support it for CrossAxisAlignment.baseline. See https://github.com/flutter/flutter_markdown/issues/311 for cases, where this might be a problem for you.

See also:

  • start, which allows for intrinsic height measurements.
start → const MarkdownListItemCrossAxisAlignment

Uses CrossAxisAlignment.start for the row the bullet and the list item are placed in.

This alignment will ensure that intrinsic height measurements work.

However, note that this alignment might not line up the bullet with the list text in the way you would expect in certain scenarios. See https://github.com/flutter/flutter_markdown/issues/169 for example cases that do not produce expected results.

See also:

  • baseline, which will position the bullet and list item on the baseline.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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<MarkdownListItemCrossAxisAlignment>
A constant List of the values in this enum, in order of their declaration.