flutter_ai_chat_markdown library

A Flutter package for rendering AI-generated markdown with streaming support, math, chemistry, biology sequence, and chart visualizations.

The primary widget is MarkdownRenderer. Customize its appearance with MarkdownTheme (or wrap your widget tree in MarkdownThemeScope). Extend rendering capabilities by passing custom MarkdownExtensions.

Classes

ChartOptions
Display options that apply to an entire ChartSpec.
ChartSeries
A single data series within a ChartSpec.
ChartSpec
The complete specification for a chart rendered inside a ```chart fence.
ClipboardHelper
Convenience helpers for writing text to the system clipboard.
MarkdownExtension
Base class for custom fenced-block renderers.
MarkdownRenderer
A widget that renders a markdown string, including rich content such as math (LaTeX), chemistry (mhchem), biology sequences, charts, tables, code blocks with syntax highlighting, and blockquotes.
MarkdownTheme
Defines the visual styling applied to every element rendered by MarkdownRenderer.
MarkdownThemeScope
An InheritedWidget that provides a MarkdownTheme to all descendant MarkdownRenderer widgets.
Opens URLs in a safe manner, with scheme validation and a confirmation dialog for untrusted external HTTP/HTTPS links.

Enums

ChartType
The visual style of a chart rendered inside a ```chart code fence.