MarkdownText constructor

const MarkdownText({
  1. Key? key,
  2. required List<String> paragraphs,
  3. double fontSize = 16.0,
  4. String fontFamily = "Roboto",
  5. TextAlign textAlign = TextAlign.left,
})

A widget that displays a list of paragraphs with markdown-like bold text.

The MarkdownText widget takes a list of paragraphs and displays them with bold text for any text enclosed in double asterisks (**).

The paragraphs parameter must not be null. The fontSize parameter defaults to 16.0 if not provided. The fontFamily parameter defaults to "Roboto" if not provided. The textAlign parameter defaults to TextAlign.left if not provided.

Implementation

const MarkdownText({
  super.key,
  required this.paragraphs,
  this.fontSize = 16.0,
  this.fontFamily = "Roboto",
  this.textAlign = TextAlign.left,
});