FLUTTER ECOSYSTEM

Shahxad-Akram/flutter_tex

一个基于 LaTeX 的 Flutter 包,用于渲染数学、物理和化学方程式

flutter_tex 项目封面
Stars
307
Forks
147
最近推送(UTC)
2026年9月10日
项目状态
未归档
Shahzad Akram GitHub avatar
GITHUB User

Shahzad Akram ↗

A self-taught Programmer and a Chemist by profession.

Sargodha, Punjab, Pakistan
语言DartJavaScriptHTMLRubySwiftCSSKotlinObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 8 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

GitHub stars pub package

https://raw.githubusercontent.com/Shahxad-Akram/flutter_tex/refs/heads/main/example/assets/flutter_tex_banner.png

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:

https://img.shields.io/badge/READ_THE_DOCS-PASSING?style=for-the-badge&logo=readthedocs&logoColor=white&color=blueviolet

Credits

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