config/style_config library
Classes
- BlockQuoteConfig
- config class for BlockQuoteWidget
- BlockQuoteWidget
- Tag: blockquote the blockQuote widget
- CheckBoxConfig
- config class for MCheckBox
- CodeConfig
- HrConfig
- config class for HrWidget
- HrWidget
- Tag: hr the hr widget
- ImageTagWidget
- the image widget
- ImgConfig
- config class for ImageTagWidget
- MarkdownTheme
- 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
- StyleConfig
- TableConfig
- config class for TableWidget
- TableWidget
- Tag: table the table widget
- TextConfig
- config class for TextStyle
- TitleConfig
- config class for TitleWidget
- TitleWidget
- Tag: h1~h6 the title widget
- UlConfig
- Config class for unOrderly list
- ULWidget
- the unOrderly list widget
- VideoConfig
- VideoWidget
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 del、em、strong
-
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)
- LinkGesture = Widget Function(Widget linkWidget, String? url)
- OlWrapper = Widget Function(Widget child)
- OnLinkTap = void Function(String? url)
- PreWrapper = Widget Function(Widget preWidget, String text)
- TableWrapper = Widget Function(Table table)
- TitleWrapper = Widget Function(Widget title)
- UlWrapper = Widget Function(Widget child)
-
VideoBuilder
= Widget Function(String? url, Map<
String, String> attributes) - VideoWrapper = Widget Function(Widget video)