Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

A markdown renderer for Flutter

Flutter Markdown

A markdown renderer for Flutter. It supports the original format, but no inline html.

Getting Started

Using the Markdown widget is simple, just pass in the source markdown as a string:

Markdown(data: markdownSource);

If you do not want the padding or scrolling behavior, use the MarkdownBody instead:

MarkdownBody(data: markdownSource);

By default, Markdown uses the formatting from the current material design theme, but it’s possible to create your own custom styling. Use the MarkdownStyle class to pass in your own style. If you don’t want to use Markdown outside of material design, use the MarkdownRaw class.

Image support

The Img tag only supports the following image locations:

Download Flutter Markdown source code on GitHub

https://github.com/flutter/flutter_markdown

Exit mobile version