Skip to content
pubscout

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.

WASM-ready
$ flutter pub add val_latex_flutter

What 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.

Works with

Packages commonly used together with val_latex_flutter: ones it builds on, ones built on it, and its own family.