MarkdownWidget constructor
const
MarkdownWidget({
- Key? key,
- required String data,
- bool selectable = false,
- MarkdownStyleSheet? styleSheet,
- MarkdownStyleSheetBaseTheme? styleSheetTheme = MarkdownStyleSheetBaseTheme.material,
- SyntaxHighlighter? syntaxHighlighter,
- MarkdownTapLinkCallback? onTapLink,
- VoidCallback? onTapText,
- String? imageDirectory,
- List<
BlockSyntax> ? blockSyntaxes, - List<
InlineSyntax> ? inlineSyntaxes, - ExtensionSet? extensionSet,
- MarkdownImageBuilder? imageBuilder,
- MarkdownCheckboxBuilder? checkboxBuilder,
- MarkdownBulletBuilder? bulletBuilder,
- Map<
String, MarkdownElementBuilder> builders = const <String, MarkdownElementBuilder>{}, - bool fitContent = false,
- MarkdownListItemCrossAxisAlignment listItemCrossAxisAlignment = MarkdownListItemCrossAxisAlignment.baseline,
Creates a widget that parses and displays Markdown.
The data
argument must not be null.
Implementation
const MarkdownWidget({
Key? key,
required this.data,
this.selectable = false,
this.styleSheet,
this.styleSheetTheme = MarkdownStyleSheetBaseTheme.material,
this.syntaxHighlighter,
this.onTapLink,
this.onTapText,
this.imageDirectory,
this.blockSyntaxes,
this.inlineSyntaxes,
this.extensionSet,
this.imageBuilder,
this.checkboxBuilder,
this.bulletBuilder,
this.builders = const <String, MarkdownElementBuilder>{},
this.fitContent = false,
this.listItemCrossAxisAlignment =
MarkdownListItemCrossAxisAlignment.baseline,
}) : super(key: key);