mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() Switch our pubspec.yamls to using SDK sources so that we can have consistent source types when we depend on these packages from external packages using SDK sources. |
||
---|---|---|
.. | ||
example | ||
lib | ||
test | ||
pubspec.yaml | ||
README.md |
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:
new Markdown(data: markdownSource);
If you do not want the padding or scrolling behavior, use the MarkdownBody instead:
new 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.