markdownListItemMarkerBuilder property
Widget Function(MarkdownListType style, String? number, TextStyle listItemStyle)
markdownListItemMarkerBuilder
getter/setter pair
Implementation
Widget Function(
MarkdownListType style, String? number, TextStyle listItemStyle)
markdownListItemMarkerBuilder = (listType, number, listItemStyle) {
return RichText(
text: TextSpan(
text:
listType == MarkdownListType.unordered ? '\u2022' : '$number.',
style: TextStyle(
color: listItemStyle.color?.withOpacity(0.75) ?? Colors.black,
fontSize: listType == MarkdownListType.unordered
? (listItemStyle.fontSize ?? 16) * 1.4
: (listItemStyle.fontSize ?? 16) * 0.96,
)),
strutStyle: StrutStyle(
height: listItemStyle.height,
forceStrutHeight: true,
),
textAlign: TextAlign.right);
};