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.
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.
- gpt_markdown
Powerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.
94Compare - code_editor
A Flutter code editor widget with syntax highlighting, custom themes, and file navigation.
82Compare - markdown_editor_live
WYSIWYG markdown editor widget with live syntax highlighting
52Compare - flutter_md
Fast Markdown parser and canvas renderer for Flutter with text selection and streaming.
82Compare
Works with
Packages commonly used together with flutter_smooth_markdown: ones it builds on, ones built on it, and its own family.
- flutter_svgflutter_smooth_markdown depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.
- cached_network_imageflutter_smooth_markdown depends on itLoad and cache network images in Flutter with placeholder and error widget support.
- highlightflutter_smooth_markdown depends on itDart library that parses source code into syntax‑highlighted HTML
- flutter_highlightflutter_smooth_markdown depends on itA Flutter widget that highlights source code with many languages and themes.
- flutter_math_forkflutter_smooth_markdown depends on itFast and high-quality TeX math equation rendering with pure Dart and Flutter.