flutter_html_math
3.0.0, released 2 years ago by sub6resources.com
Renders <math> tags in flutter_html using flutter_math_fork.
What it does
The package parses MathML inside <math> elements to TeX and displays it with flutter_math_fork. It integrates as an Html extension for flutter_html.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need MathML support in flutter_html
- You want to display equations without writing TeX manually
Skip it when
- You only need simple HTML without math
- You require full MathML feature parity
Strengths
- Seamless integration with flutter_html
- Leverages flutter_math_fork for rendering
- Supports many MathML tags
Weaknesses
- Partial MathML support may miss some features
- Parsing errors require handling via onMathError
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Widget html = Html(
extensions: {
MathHtmlExtension(),
},
);Alternatives
Packages that do the same job and could replace flutter_html_math.
- flutter_tex
Renders mathematical and chemical equations using LaTeX, TeX, MathML, and AsciiMath.
83Compare - gpt_markdown
Powerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.
94Compare - val_latex
LaTeX math parser and layout engine in pure Dart with OpenType fonts.
78Compare - flutter_widget_from_html
Render HTML content as native Flutter widgets with support for common tags, CSS, and media.
89Compare
Works with
Packages commonly used together with flutter_html_math: ones it builds on, ones built on it, and its own family.
- htmlflutter_html_math depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- flutter_htmlflutter_html_math depends on itRenders static HTML and CSS as Flutter widget trees.
- flutter_math_forkflutter_html_math depends on itFast and high-quality TeX math equation rendering with pure Dart and Flutter.
- flutter_html_tableSame familyRenders HTML table tags within the flutter_html package using flutter_layout_grid.
- flutter_html_iframeSame familyRenders <iframe> tags in flutter_html using webview_flutter.
- flutter_html_allBuilt on flutter_html_mathConvenience package exporting all optional flutter_html widgets.