custom_widgets/markdown_config library

Classes

AlertBuildDetails
What the alert builder is told about one alert.
BlockLatexBuildDetails
What BlockLatexBuilder is told about one block formula.
GptMarkdownConfig
A configuration class for the GPT Markdown component.
InlineBuildDetails
What an inline builder is told about the construct it is rendering.
InlineLatexBuildDetails
What InlineLatexBuilder is told about one inline formula.
LatexTapDetails
What GptMarkdownConfig.onLatexTap is told about a tap on a formula.
LinkBuildDetails
What the link builder is told about one [label](url) or autolink.
SourceTagBuildDetails
What the source-tag builder is told about one [1] citation chip.

Typedefs

AlertBuilder = Widget Function(BuildContext context, AlertBuildDetails details)
Builds the widget for an alert — a quote opening with a marker such as [!NOTE]. See AlertBuildDetails for what it is given.
BlockLatexBuilder = Widget Function(BlockLatexBuildDetails details)
Builds the widget for one block formula — \[…\], or $$…$$ with GptMarkdown.useDollarSignsForLatex.
BlockQuoteBuilder = Widget Function(BuildContext context, Widget content, BlockQuoteStyle style)
Builds the widget for a blockquote.
CheckboxBuilder = Widget Function(BuildContext context, bool checked, Widget content, CheckboxStyle style)
Builds the widget for a task-list checkbox and its label.
CodeBlockBuilder = Widget Function(BuildContext context, String name, String code, bool closed)
A builder function for the code block.
HeadingBuilder = Widget Function(BuildContext context, int level, Widget content, HeadingStyle style)
Builds the widget for a # heading.
HighlightBuilder = Widget Function(BuildContext context, String text, TextStyle style)
A builder function for the highlight.
HrBuilder = Widget Function(BuildContext context, HrStyle style)
Builds the widget for a horizontal rule.
ImageBuilder = Widget Function(BuildContext context, String imageUrl, double? width, double? height)
A builder function for the image.
InlineCodeBuilder = InlineSpan Function(BuildContext context, String code, TextStyle style, InlineCodeStyle codeStyle)
Builds the span for one run of inline `code`.
InlineLatexBuilder = InlineSpan Function(InlineLatexBuildDetails details)
Builds the span for one inline formula — \(…\), or $…$ with GptMarkdown.useDollarSignsForLatex.
InlineLinkBuilder = InlineSpan Function(LinkBuildDetails details)
Builds the span for one [label](url) link or autolink.
InlineSourceTagBuilder = InlineSpan Function(SourceTagBuildDetails details)
Builds the span for one [1] citation chip.
LatexBuilder = Widget Function(BuildContext context, String tex, TextStyle textStyle, bool inline)
A builder function for the LaTeX.
LinkBuilder = Widget Function(BuildContext context, InlineSpan text, String url, TextStyle style)
A builder function for the link.
OrderedListBuilder = Widget Function(BuildContext context, String no, Widget child, GptMarkdownConfig config)
A builder function for the ordered list.
RadioOptionBuilder = Widget Function(BuildContext context, bool checked, Widget content, CheckboxStyle style)
Builds the widget for a radio option and its label.
SourceTagBuilder = Widget Function(BuildContext context, String text, TextStyle style)
A builder function for the source tag.
TableBuilder = Widget Function(BuildContext context, List<CustomTableRow> tableRows, TextStyle textStyle, GptMarkdownConfig config)
A builder function for the table.
UnOrderedListBuilder = Widget Function(BuildContext context, Widget child, GptMarkdownConfig config)
A builder function for the unordered list.