markdown_widget
2.3.2+8, released 2 years ago by morn.fun
A simple and easy-to-use markdown rendering component for Flutter.
What it does
Renders markdown data as Flutter widgets with support for code highlighting, table of contents (TOC), and custom tags. It supports all platforms including Android, iOS, Web, Windows, macOS, and Linux.
AI-written summary of version 2.3.2+8, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to render markdown content in your Flutter application.
- You need features like code highlighting and a table of contents (TOC) out of the box.
Skip it when
- You need complex native HTML tag conversion by default without extensions.
Strengths
- Supports all platforms.
- Built-in table of contents (TOC) functionality.
- Code syntax highlighting and night mode support.
Weaknesses
- Does not support the conversion of HTML tags by default without extensions.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
import 'package:flutter/material.dart';
import 'package:markdown_widget/markdown_widget.dart';
class MarkdownPage extends StatelessWidget {
final String data;
MarkdownPage(this.data);
@override
Widget build(BuildContext context) => Scaffold(body: MarkdownWidget(data: data));
}Alternatives
Packages that do the same job and could replace markdown_widget.
- flutter_md
Fast Markdown parser and canvas renderer for Flutter with text selection and streaming.
82Compare - code_editor
A Flutter code editor widget with syntax highlighting, custom themes, and file navigation.
82Compare - textf
Drop-in Text and TextEditingController replacements for inline Markdown-like text formatting
81Compare - val_highlight_flutter
Flutter widgets for displaying and editing syntax-highlighted code.
80Compare
Works with
Packages commonly used together with markdown_widget: ones it builds on, ones built on it, and its own family.
- url_launchermarkdown_widget depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- markdownmarkdown_widget depends on itA portable Markdown library written in Dart that can parse Markdown into HTML.
- scroll_to_indexmarkdown_widget depends on itScroll to a specific child of any scrollable widget in Flutter.
- highlightmarkdown_widget depends on itDart library that parses source code into syntax‑highlighted HTML
- flutter_highlightmarkdown_widget depends on itA Flutter widget that highlights source code with many languages and themes.
- visibility_detectormarkdown_widget depends on itWidget that reports visibility changes of its child
- code_forgeBuilt on markdown_widgetA powerful text editor widget for Flutter handling 1M+ lines with LSP and AI completion.