31.47 Flutter Package: markdown

20230727

Using the flutter_markdown package a Text(content) can be replaced with a MarkdownBody(data: content) to have the text rendered from the markdown.

Thus:

    child: Center(child: Text(content)),

becomes

    child: Center(child: MarkdownBody(data: content,)),

We can then render the usual markdown markup. So **bold** is rendered as bold, and *italic* is rendered as italic.

A bullet list is created with \n+ First item\n+ Second item rendered as

  • First item

  • Second item

Emojis can be included in the text, so that **Welcome Home**🏠 becomes Welcome Home 🏠.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0