搜索插件、代码仓与 APP 分类

flutter_tex 封面
插件详情v5.3.0

flutter_tex

一个基于 LaTeX、TeX、MathML 和 AsciiMath 的 Flutter 包,支持 HTML 和 JavaScript,用于渲染数学、物理、化学、统计方程和表达式。

AndroidiOSWebmacOS
近 30 天下载
2.9万
喜欢数
348
Pub 分数
150

安装插件

flutter pub add flutter_tex

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Flutter_tex 是一个 Flutter 包,可使用 LaTeX、TeX、MathML 和 AsciiMath 渲染复杂的数学、科学和统计表达式。它支持 HTML 和 JavaScript 集成,非常适合教育类应用、研究工具和技术文档。该包可在 Android、iOS、Web 和 macOS 平台上运行,提供高保真度的公式渲染和响应式设计。它简化了在 Flutter 应用中以清晰、易读的格式显示复杂公式的流程。

适合场景

  • 教育类应用
  • 科学计算器
  • 论文查看器
  • 交互式数学教程
  • 技术文档

主要特点

  • LaTeX 和 TeX 支持
  • MathML 和 AsciiMath 解析
  • HTML 和 JavaScript 集成
  • 跨平台兼容性
  • 高质量的公式渲染

适合对象

  • 开发STEM应用的开发者
  • 创建数字学习工具的教育工作者
  • 需要高级数学显示的应用程序
  • Web 和移动混合项目
  • 包含技术公式的内容平台

使用建议

  • 需要了解 LaTeX 语法
  • 由于渲染引擎,可能导致应用体积增大
  • 大型表达式带来的性能影响
  • 有限的离线自定义选项
  • 依赖外部渲染库

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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.

所属分类

依赖

依赖清单 5 项

源码仓库

使用此插件的项目

所在榜单