flutter_tex 5.2.5 copy "flutter_tex: ^5.2.5" to clipboard
flutter_tex: ^5.2.5 copied to clipboard

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

GitHub stars pub package


$$ \Huge i\hbar \frac{\partial}{\partial t} \Psi(\mathbf{r},t) = \left[ -\frac{\hbar^2}{2m} \nabla^2 + V(\mathbf{r},t) \right] \Psi(\mathbf{r},t) $$

Flutter $\rm\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, $\rm\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.

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}$$

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

340
likes
160
points
4.72k
downloads
screenshot

Publisher

verified publishershahxad.com

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_highlight, flutter_svg, markdown, url_launcher, web, webview_flutter_plus

More

Packages that depend on flutter_tex