Creates a new Markdown Widget that renders the markdown formatted string passed in as data. You need to pass in a markdownStyle that defines how the code is rendered. Code blocks are by default not using syntax highlighting, but it's possible to pass in a custom syntaxHighlighter.
Typically, you may want to wrap the MarkdownBodyRaw widget in a
Padding and a ScrollableViewport, or use the Markdown class
new ScrollableViewport(
child: new Padding(
padding: new EdgeInsets.all(16.0),
child: new MarkdownBodyRaw(
data: markdownSource,
markdownStyle: myStyle
)
)
)
Source
MarkdownBodyRaw({ this.data, this.markdownStyle, this.syntaxHighlighter, this.onTapLink });