flutter_ai_chat_markdown 0.1.1 copy "flutter_ai_chat_markdown: ^0.1.1" to clipboard
flutter_ai_chat_markdown: ^0.1.1 copied to clipboard

A rich markdown renderer for Flutter AI chat apps. Supports streaming, math (LaTeX), chemistry (mhchem), biology sequences, charts, syntax highlighting, and full theming.

0.1.1 #

  • Initial release.
  • MarkdownRenderer widget with streaming support (throttled rebuild, stable block keys).
  • MarkdownTheme system with chatGptLight and chatGptDark presets, full copyWith().
  • MarkdownThemeScope InheritedWidget for app-level theme injection.
  • Block renderers: headings (H1–H6), paragraph (bold/italic/inline code/strikethrough), ordered/unordered/task lists, blockquote with callout admonitions (NOTE/WARNING/TIP/IMPORTANT/CAUTION).
  • CodeBlock: syntax highlighting via flutter_highlight, copy button, language label, collapsible for >50 lines, horizontal scroll.
  • TableBlock: horizontal scroll, zebra striping, long-press copy (cell / row / TSV / Markdown).
  • MathBlock: inline $...$ and block $$...$$ via flutter_math_fork, error fallback.
  • ChemBlock: mhchem \ce{} transform — subscripts, superscripts, arrows, ion charges.
  • BioBlock: color-coded DNA / RNA / protein sequences, GC% stat, sequence length, copy.
  • ChartBlock: bar, line, area, pie, scatter, radar charts from JSON fence via fl_chart.
  • ImageBlock: cached_network_image with shimmer, photo_view hero zoom.
  • SafeLink: scheme allowlist + unknown-domain confirmation dialog.
  • ClipboardHelper: copy text with SnackBar feedback.
  • Extension API (MarkdownExtension) for plugging in custom fence-tag renderers.
  • Preprocessor: EOL normalisation, unclosed fence repair for streaming, smart-quote conversion.
  • BlockSplitter: splits raw markdown into stable blocks + streaming tail block.
0
likes
150
points
31
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A rich markdown renderer for Flutter AI chat apps. Supports streaming, math (LaTeX), chemistry (mhchem), biology sequences, charts, syntax highlighting, and full theming.

Repository (GitHub)
View/report issues

Topics

#markdown #chat #ai #math #streaming

License

MIT (license)

Dependencies

fl_chart, flutter, flutter_highlight, flutter_math_fork, highlight, url_launcher

More

Packages that depend on flutter_ai_chat_markdown