flutter_markdown is discontinued: what to use instead

Updated 2026-11-17

The short answer

flutter_markdown is marked discontinued on pub.dev and points to flutter_markdown_plus, a community continuation with the same API. If you render static documents, flutter_markdown_plus is the smallest change. If you render AI or chat output, switch to gpt_markdown: it streams incrementally and includes LaTeX math and highlighted code.

Which replacement?

If you...Use
Render static Markdown and want zero code changesflutter_markdown_plus
Render LLM, chatbot or agent repliesgpt_markdown
Need LaTeX math or syntax-highlighted code built ingpt_markdown
Stream long replies without jankgpt_markdown (SliverGptMarkdown for very long ones)

Migrate from flutter_markdown to gpt_markdown

Most apps change one import and the widget name. Check styling afterwards: gpt_markdown follows your Material theme by default, and its style sheet covers headings, code, tables, links, quotes and math.

bash
flutter pub remove flutter_markdown
flutter pub add gpt_markdown
flutter_markdowngpt_markdown
MarkdownBody(data: text)GptMarkdown(text)
Markdown(data: text) (scrolling)CustomScrollView(slivers: [SliverGptMarkdown(text)])
styleSheet: MarkdownStyleSheet(...)styleSheet: GptMarkdownStyleSheet(...)
onTapLink: (text, href, title) {...}onLinkTap: (url, title) {...}
selectable: trueWrap in SelectionArea
imageBuilderimageBuilder
LaTeX through extension syntaxesBuilt in: \(...\) and \[...\]

Frequently asked

Is flutter_markdown deprecated?
Yes. It is marked discontinued on pub.dev and recommends flutter_markdown_plus as its replacement.
What is the best flutter_markdown alternative for AI chat?
gpt_markdown. It is designed for streaming LLM output and renders Markdown, LaTeX math and code in one widget.
Is gpt_markdown a drop-in replacement?
Close: the widget takes the text directly (GptMarkdown(text)), and a few parameter names differ, mapped in the table above.
gpt_markdown getting started Benchmark report