flutter_tex 5.2.4 copy "flutter_tex: ^5.2.4" to clipboard
flutter_tex: ^5.2.4 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

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.

340
likes
160
points
3.74k
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_svg, markdown, url_launcher, web, webview_flutter_plus

More

Packages that depend on flutter_tex