markdown_widget library

Classes

BlockQuoteConfig
config class for BlockQuoteWidget
BlockQuoteWidget
Tag: blockquote the blockQuote widget
CheckBoxConfig
config class for MCheckBox
CodeConfig
DoubleLinkedQueue<E>
A Queue implementation based on a double-linked list.
DoubleLinkedQueueEntry<E>
An entry in a doubly linked list.
HashMap<K, V>
A hash-table based implementation of Map.
HashSet<E>
An unordered hash-table based Set implementation.
HasNextIterator<E>
Wrapper for Iterator providing the pre-Dart 1.0 iterator interface.
HrConfig
config class for HrWidget
HrWidget
Tag: hr the hr widget
ImageTagWidget
the image widget
ImgConfig
config class for ImageTagWidget
LinkedHashMap<K, V>
An insertion-ordered Map with expected constant-time lookup.
LinkedHashSet<E>
A LinkedHashSet is a hash-table based Set implementation.
LinkedList<E extends LinkedListEntry<E>>
A specialized double-linked list of elements that extends LinkedListEntry.
LinkedListEntry<E extends LinkedListEntry<E>>
An object that can be an element in a LinkedList.
ListBase<E>
Abstract implementation of a list.
ListQueue<E>
List based Queue.
MapBase<K, V>
Base class for implementing a Map.
MapView<K, V>
Wrapper around a class that implements Map that only exposes Map members.
MarkdownGenerator
use MarkdownGenerator to transform markdown data to Widget list, so you can render it by any type of ListView
MarkdownTheme
MarkdownWidget
MCheckBox
the check box widget
OlConfig
Config class for orderly list
OLWidget
the orderly list widget
OtherWidget
the custom widget
PConfig
config class for PWidget
PreConfig
config class for PreWidget
PreWidget
Tag: pre the pre widget
PWidget
Tag: p the paragraph widget
Queue<E>
A Queue is a collection that can be manipulated at both ends. One can iterate over the elements of a queue through forEach or with an Iterator.
SetBase<E>
Base implementation of Set.
SplayTreeMap<K, V>
A Map of objects that can be ordered relative to each other.
SplayTreeSet<E>
A Set of objects that can be ordered relative to each other.
StyleConfig
TableConfig
config class for TableWidget
TableWidget
Tag: table the table widget
TaskListSyntax
Thanks for https://github.com/flutter/flutter_markdown/blob/4cc79569f6c0f150fc4e9496f594d1bfb3a3ff54/lib/src/widget.dart
TextConfig
config class for TextStyle
TitleConfig
config class for TitleWidget
TitleWidget
Tag: h1~h6 the title widget
Toc
TocController
you need to set ItemScrollController, so TocListener will be trigger
TocListWidget
UlConfig
Config class for unOrderly list
ULWidget
the unOrderly list widget
UnmodifiableListView<E>
An unmodifiable List view of another List.
UnmodifiableMapBase<K, V>
Basic implementation of an unmodifiable Map.
UnmodifiableMapView<K, V>
View of a Map that disallow modifying the map.
UnmodifiableSetView<E>
An unmodifiable Set view of another Set.
VideoConfig
VideoWidget

Extensions

IterableExtensions on Iterable<T>
Operations on iterables.
NullableIterableExtensions on Iterable<T?>
Operations on iterables with nullable elements.

Properties

defaultBlockColor Color?
default background color of tag: blockquote
no setter
defaultBlockStyle TextStyle?
default style of tag: blockquote
no setter
defaultCodeBackground Color?
default background color of tag: code
no setter
defaultCodeStyle TextStyle?
default style of tag: code
no setter
defaultDelStyle TextStyle
default style of delete text
no setter
defaultDividerColor Color?
default divider color of tag: hr and h1~h6
no setter
defaultEmStyle TextStyle
default style of slanting text
no setter
defaultHighLightCodeTheme Map<String, TextStyle>?
default theme of highlight code
no setter
defaultLinkStyle TextStyle?
default style of tag: a
no setter
defaultPreBackground Color?
default background color of tag: pre
no setter
defaultPStyle TextStyle?
default style of tag: p
no setter
defaultStrongStyle TextStyle
default style of bold text
no setter
defaultTableBorderColor Color?
default border color of tag: table
no setter
defaultTitleColor Color?
default text color of tag: h1~h5
no setter
defaultUlDotColor Color?
default color of unOrderly index widget
no setter

Functions

buildSpans(Element? parentNode, TextStyle? parentStyle) List<InlineSpan>
buildTextSpan(Text node, TextStyle? parentStyle, bool shouldParseHtml) InlineSpan
get textSpan by one node
defaultVideoWidget(Map<String, String> attributes, {String? url}) Widget
the video widget
getBlockSpan(List<Node>? nodes, Node parentNode, TextStyle? parentStyle) InlineSpan
get textSpan by nodes
getCodeSpan(Element node) InlineSpan
Tag: code
getImageSpan(Element node) InlineSpan
Tag: img
getInputSpan(Element node) InlineSpan
Tag: input
getLinkSpan(Element element) InlineSpan
Tag: a
getOtherWidgetSpan(Element node) InlineSpan
Tag: other --- this is for you to custom widget
getTextStyle(String tag) TextStyle
merge the style of delemstrong
getVideoSpan(Element node) InlineSpan
Tag: video(this is not markdown's tag)
highLightSpans(String input, {String? language, bool autoDetectionLanguage = false, Map<String, TextStyle>? theme = const {}, TextStyle? textStyle, int tabSize = 8}) List<InlineSpan>

Typedefs

BodyChildWrapper = Widget Function(Widget child)
CheckBoxBuilder = Widget Function(bool checked, Map<String, String> attributes)
Custom = Widget Function(Element element)
DotWidget = Widget Function(int deep, int index)
HeadChildWrapper = Widget Function(Widget child)
ImgBuilder = Widget Function(String url, Map<String, String> attributes)
ImgWrapper = Widget Function(Widget img)
IndexWidget = Widget Function(int deep, int index)
IterableBase<E> = Iterable<E>
Base class for implementing Iterable.
IterableMixin<E> = Iterable<E>
This Iterable mixin implements all Iterable members except iterator.
LinkGesture = Widget Function(Widget linkWidget, String? url)
ListMixin<E> = ListBase<E>
Base mixin implementation of a List class.
MapMixin<K, V> = MapBase<K, V>
Mixin implementing a Map.
OlWrapper = Widget Function(Widget child)
OnLinkTap = void Function(String? url)
PreWrapper = Widget Function(Widget preWidget, String text)
SetMixin<E> = SetBase<E>
Mixin implementation of Set.
TableWrapper = Widget Function(Table table)
TitleWrapper = Widget Function(Widget title)
TocItem = Widget Function(Toc toc, bool isCurrent)
UlWrapper = Widget Function(Widget child)
VideoBuilder = Widget Function(String? url, Map<String, String> attributes)
VideoWrapper = Widget Function(Widget video)