latext
0.5.1, released a year ago by djade.net
Render LaTeX equations with text support using flutter_math_fork
What it does
latext provides a widget that parses a string containing LaTeX delimiters and renders the math parts with flutter_math_fork while the surrounding text is rendered as normal RichText. It works on Android, iOS, Web and Desktop without using WebView.
AI-written summary of version 0.5.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need to display inline or block LaTeX equations inside normal text
- Want cross‑platform support without JavaScript or WebView
- Require the ability to mix plain text and math in a single widget
Skip it when
- Performance critical rendering of very large or complex equations
- Projects that already use a full KaTeX or MathJax integration
Strengths
- Cross‑platform (Android, iOS, Web, Desktop)
- No WebView or JavaScript dependency
- Inherits text style from parent widgets
- Supports inline and block math with delimiters
Weaknesses
- Relies on flutter_math_fork, so limited to its feature set
- No support for advanced KaTeX features like custom macros
- Potentially slower for very large equations
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:latext/latext.dart';
LaTexT(
laTeXCode: Text("\\alpha + \$x^2\\$ is a formula", style: Theme.of(context).textTheme.bodyText1),
);Alternatives
Packages that do the same job and could replace latext.
- flutter_tex
Renders mathematical and chemical equations using LaTeX, TeX, MathML, and AsciiMath.
83Compare - widget_tooltip
A customizable tooltip widget for Flutter with multiple trigger modes and smart positioning
48Compare - circular_widgets
Display widgets in a circle with customizable radius and spacing.
45Compare - webviewx_plus
Cross‑platform webview widget using webview_flutter for mobile and iframe for web with JS interop
53Compare
Works with
Packages commonly used together with latext: ones it builds on, ones built on it, and its own family.