mdc_flutter library
Flutter rendering for Markdown Components documents.
Classes
- HtmlElement
- One semantic HTML element.
- HtmlFragment
- A transparent group of sibling nodes.
- HtmlNode
- A node in a server-rendered semantic HTML tree.
- HtmlOutlet
- The insertion point for a matched descendant route document.
- HtmlText
- Escaped text content.
- MdcComponent
- A named component invocation.
- MdcComponentBinding
- A named component contributed to one MDC renderer.
- MdcDocument
- One parsed Markdown Components document.
- MdcDocumentController
- Owns MDC source and its latest parsed document for Flutter views.
- MdcElement
- A semantic Markdown element.
- MdcHtmlComponent
- A component available to the MDC HTML renderer.
- MdcHtmlComponentContext
- The input passed to an MdcHtmlComponentBuilder.
- MdcHtmlRenderer
- Converts an immutable MDC document into semantic HtmlNode values.
- MdcHtmlSlot
- One rendered named slot passed to an HTML component.
- MdcListView
- Lazily renders an MDC document as a scrolling list.
- MdcModule
- Installs MDC parsing and renderer-specific components into an application.
- MdcNode
- A node in an MDC document.
- MdcOutlineEntry
- One heading in an MDC document outline.
- MdcParser
- Parses Markdown Components source into an immutable, renderer-neutral AST.
- MdcSliver
- Lazily renders an MDC document inside a CustomScrollView.
- MdcSlot
- One named component slot.
- MdcStyle
- Visual overrides used by Flutter MDC renderers.
- MdcText
- Plain text content.
- MdcUriPolicy
- Controls which links and images may produce navigable destinations.
- MdcView
- Renders an MDC document as a non-scrolling Flutter widget tree.
- MdcWidgetComponent
- A component available to Flutter MDC renderers.
- MdcWidgetComponentContext
- The input passed to an MdcWidgetComponentBuilder.
- MdcWidgetRenderer
- Converts an immutable MdcDocument into Flutter widgets.
- MdcWidgetSlot
- One rendered named slot passed to a Flutter component.
Extensions
- MdcDocumentOutline on MdcDocument
- Heading utilities for an immutable MdcDocument.
Properties
-
mdcParserKey
→ ContextKey<
MdcParser> -
The application context key used to read the registered MdcParser.
final
Typedefs
- MdcHtmlComponentBuilder = HtmlNode Function(MdcHtmlComponentContext context)
- Builds the HTML representation of an MDC component.
- MdcImageBuilder = Widget Function(BuildContext context, Uri source, String? description)
- Builds an image found in rendered MDC content.
- MdcLinkHandler = void Function(BuildContext context, Uri location)
- Handles a link activated by rendered MDC content.
- MdcTransform = MdcDocument Function(MdcDocument document)
- Transforms one parsed immutable MDC document.
- MdcWidgetComponentBuilder = Widget Function(MdcWidgetComponentContext context)
- Builds the Flutter representation of an MDC component.
Exceptions / Errors
- MdcHtmlRenderException
- A failure to convert an MDC node into safe semantic HTML.
- MdcUnknownComponentException
- Thrown when a renderer cannot resolve a component used by a document.