Markdown is awesome, you can show rich text without using that ugly http code. On Flutter you have a great package to use to show markdown: flutter_markdown.
It is extremely easy to use in its basic “mode” but we’ll also show some advanced features.
That’s a no-brainer, just add to your pubspec.yaml:
and do a good old
then import the package like this:
To show the markdown content we just need to return this iwdget inside the builder:
the result will be this:
the widget is already scrollable, if we need to add it to a scrollable parent we should use
Some advanced features
This package also includes:
- Image support in form of URL, absolute file or resources
- Selectable text
- Emoji support
- AutoLink support
There, your natural evolution of WYSIWYG is here, you are welcome.