Skip to content
pubscout

flutter_smooth_markdown

0.10.0, released 2 months ago by an unverified publisher

High-performance markdown renderer and editor with syntax highlighting, LaTeX, tables, SVG, Mermaid, and real-time streaming.

$ flutter pub add flutter_smooth_markdown
Source repository

What it does

It renders markdown to Flutter widgets with advanced features such as syntax highlighting, LaTeX math, tables, footnotes, SVG images, and Mermaid diagrams. It also provides a fully featured editor with formatting toolbar, slash commands, wikilinks, and real-time streaming support.

AI-written summary of version 0.10.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a fast, feature-rich markdown renderer for a Flutter app
  • You want an integrated editor for markdown with live preview
  • You require LaTeX math or Mermaid diagram support in markdown
  • You need real-time streaming of markdown content

Skip it when

  • You only need simple static markdown rendering
  • Your app has strict bundle size constraints
  • You are building a minimal UI without editing capabilities

Strengths

  • High performance AST-based parsing
  • Rich feature set (syntax highlighting, LaTeX, Mermaid, SVG, tables)
  • Real-time streaming and selectable text
  • Extensible editor with toolbar and keyboard shortcuts

Weaknesses

  • Large dependency footprint (flutter_highlight, flutter_math_fork, flutter_svg, cached_network_image)
  • Complex feature set may be overkill for simple use cases
  • Requires Flutter 3.0+ and Dart 3.0+

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
5

Add dependency in pubspec, import package, no build_runner needed

import 'package:flutter_smooth_markdown/flutter_smooth_markdown.dart';

SmoothMarkdown(
  data: '# Hello Markdown\n\nThis is **bold** and *italic*.',
  styleSheet: MarkdownStyleSheet.light(),
  onTapLink: (url) => print('Tapped: $url'),
)

Alternatives

Packages that do the same job and could replace flutter_smooth_markdown.

Works with

Packages commonly used together with flutter_smooth_markdown: ones it builds on, ones built on it, and its own family.