Search packages, repositories and app categories

flutter_tex cover
Package detailsv5.3.0

flutter_tex

A Flutter package to render Maths, Physics, Chemistry, Statistics equations and expressions based on LaTeX, TeX, MathML and AsciiMath with HTML and JavaScript support.

AndroidiOSWebmacOS
30-day downloads
28.9K
Likes
348
Pub points
150

Install package

flutter pub add flutter_tex

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter_tex is a Flutter package that enables rendering complex mathematical, scientific, and statistical expressions using LaTeX, TeX, MathML, and AsciiMath. It supports HTML and JavaScript integration, making it ideal for educational apps, research tools, and technical documentation. The package works across Android, iOS, Web, and macOS platforms, delivering high-fidelity equation rendering with responsive design. It simplifies the display of intricate formulas in a clean, readable format within Flutter applications.

Use cases

  • Educational apps
  • Scientific calculators
  • Research paper viewers
  • Interactive math tutorials
  • Technical documentation

Key features

  • LaTeX and TeX support
  • MathML and AsciiMath parsing
  • HTML and JavaScript integration
  • Cross-platform compatibility
  • High-quality equation rendering

Suitable for

  • Developers building STEM apps
  • Educators creating digital learning tools
  • Apps requiring advanced math display
  • Web and mobile hybrid projects
  • Content platforms with technical equations

Considerations

  • Requires understanding of LaTeX syntax
  • May increase app size due to rendering engine
  • Performance impact with large equations
  • Limited offline customization options
  • Dependent on external rendering libraries

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

GitHub stars pub package


Schrödinger Equation

Flutter TeX is 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, TeX, 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

Flutter Web

Web Demo

Get it on Google Play

Android Demo

YouTube Demo

Video Demo (old)

See screenshots in the Gallery.

📦 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.

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

Output:

Quadratic Formula

👉 See Detailed Examples

📖 Full Documentation

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

Credits

We extend our sincere credit to the original MathJax developers, whose work is the foundation of this package.

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package

Rankings