GitHub stars pub package

A self-contained Flutter package leveraging MathJax to deliver robust, fully offline rendering of mathematical and chemical notations.

🚀 Key Features

  • Offline Rendering: No internet connection required after setup.
  • Multiple Formats: Supports LaTeX, MathML, and AsciiMath.
  • Three Powerful Widgets:
    • Math2SVG: Pure Flutter based (no webview) high-performance widget, for maths formulas rendering, support LaTeX, MathML and AsciiMath.
    • TeXWidget: Based on Math2SVG dedicated for LaTeX rendering.
    • TeXView: Advanced webview-based rendering for complex HTML/JS content.
  • 👉 Click Here for Full Documentation

Screenshots

TeXWidget Quiz Sample TeX Document

📦 Installation

For the detailed installation and setup instructions for different platforms , please refer to the Installation Guide.

🛠 Quick Example

Caution

Make sure to follow the Installation Guide before running the example.

TeXWidget(math: r"When \(a \ne 0 \), then $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$")

Output:

When $a \ne 0$, then $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$

📖 Full Documentation

For detailed setup instructions, API references, and advanced configurations (Custom Fonts, MathJax settings, etc.), please visit our official documentation:

👉 Click Here for Full Documentation

Demos

Web Demo

View the live Flutter TeX implementation directly in your browser.

Android App

Download and install the example application from the Google Play Store.

Video Demo

Watch a quick video on YouTube showcasing the features.

Libraries

flutter_tex
A Flutter package to render (MathML, TeX and LaTeX) on Mobile (Android, iOS) and Web.