Markdown constructor
const
Markdown({
- Key? key,
- required String data,
- bool selectable = false,
- MarkdownStyleSheet? styleSheet,
- MarkdownStyleSheetBaseTheme? styleSheetTheme = null,
- SyntaxHighlighter? syntaxHighlighter,
- MarkdownOnSelectionChangedCallback? onSelectionChanged,
- 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>{}, - Map<
String, MarkdownPaddingBuilder> paddingBuilders = const <String, MarkdownPaddingBuilder>{}, - MarkdownListItemCrossAxisAlignment listItemCrossAxisAlignment = MarkdownListItemCrossAxisAlignment.baseline,
- EdgeInsets padding = const EdgeInsets.all(16.0),
- ScrollController? controller,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- bool softLineBreak = false,
Creates a scrolling widget that parses and displays Markdown.
Implementation
const Markdown({
super.key,
required super.data,
super.selectable,
super.styleSheet,
super.styleSheetTheme = null,
super.syntaxHighlighter,
super.onSelectionChanged,
super.onTapLink,
super.onTapText,
super.imageDirectory,
super.blockSyntaxes,
super.inlineSyntaxes,
super.extensionSet,
super.imageBuilder,
super.checkboxBuilder,
super.bulletBuilder,
super.builders,
super.paddingBuilders,
super.listItemCrossAxisAlignment,
this.padding = const EdgeInsets.all(16.0),
this.controller,
this.physics,
this.shrinkWrap = false,
super.softLineBreak,
});