Skip to content
pubscout

flutter_tex

5.3.0, released 6 weeks ago by shahxad.com

Renders mathematical and chemical equations using LaTeX, TeX, MathML, and AsciiMath.

$ flutter pub add flutter_tex
Source repository

What it does

Flutter TeX is a self-contained package leveraging MathJax to provide fully offline rendering of mathematical, physics, chemistry, and statistics equations. It supplies widgets like Math2SVG, TeXWidget, and TeXView to support various formatting needs.

AI-written summary of version 5.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to render complex mathematical or scientific equations in your Flutter application.
  • You require offline rendering support for LaTeX, MathML, or AsciiMath.

Skip it when

  • You only need to display plain text without any mathematical or scientific notation.

Strengths

  • Supports multiple formats including LaTeX, TeX, MathML, and AsciiMath.
  • Provides offline rendering capability.
  • Offers multiple specialized widgets like Math2SVG, TeXWidget, and TeXView.

Weaknesses

  • Requires following platform-specific installation guides before running.
  • Relies on webview or complex SVG rendering under the hood.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
5

Requires following the detailed Installation Guide for different platforms before running examples and setup configurations.

Math2SVG(math: r"x = {-b \pm \sqrt{b^2-4ac} \over 2a}")

Alternatives

Packages that do the same job and could replace flutter_tex.

Works with

Packages commonly used together with flutter_tex: ones it builds on, ones built on it, and its own family.