MarkdownListItemCrossAxisAlignment enum

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

Constants

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.
const MarkdownListItemCrossAxisAlignment(0)
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.
const MarkdownListItemCrossAxisAlignment(1)
values → const List<MarkdownListItemCrossAxisAlignment>

A constant List of the values in this enum, in order of their declaration.

const List<MarkdownListItemCrossAxisAlignment>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited