val_latex_flutter
0.1.4, released 2 weeks ago by useval.io
Render LaTeX math formulas, inline math, and Markdown with math in Flutter.
$ flutter pub add val_latex_flutterWhat it does
Provides widgets like Math.tex and MathText to parse and render LaTeX mathematics natively in Flutter. It supports text wrapping, text selection, screen readers, custom themes, and streaming output for LLM responses.
AI-written summary of version 0.1.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display mathematical formulas or equations in a Flutter app
- You are building an LLM chat interface that streams LaTeX math content
- You need inline math within standard text or Markdown
Skip it when
- You do not need to display any mathematical notation or LaTeX
Strengths
- Native Flutter rendering without WebViews or external platform code
- Supports formula wrapping, selection, and screen readers
- Handles streaming input efficiently for LLM outputs
- Compatibility layer for flutter_math_fork
Weaknesses
- Limited to rendering LaTeX formulas and text integration
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Simply add the dependency to pubspec.yaml and import it.
import 'package:val_latex_flutter/val_latex_flutter.dart';
Math.tex(r'x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}')Alternatives
Packages that do the same job and could replace val_latex_flutter.
- flutter_markdown_latex
An extension to render LaTeX equations inside flutter_markdown widgets.
50Compare - flutter_markdown_plus_latex
Extension to flutter_markdown_plus that renders LaTeX in markdown.
58Compare - selectable
A widget that enables text selection across multiple text widgets.
77Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare
Works with
Packages commonly used together with val_latex_flutter: ones it builds on, ones built on it, and its own family.
- val_latexval_latex_flutter depends on itLaTeX math parser and layout engine in pure Dart with OpenType fonts.
- val_highlight_flutterSame familyFlutter widgets for displaying and editing syntax-highlighted code.
- val_highlightSame familySyntax highlighter in pure Dart for 55 languages, themes, incremental updates, and HTML output.
- gpt_markdownBuilt on val_latex_flutterPowerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.