Skip to main content

val_latex_flutter 0.1.0 copy "val_latex_flutter: ^0.1.0" to clipboard
val_latex_flutter: ^0.1.0 copied to clipboard

Render LaTeX math in Flutter: Math and MathText widgets, inline math in text, wrapping, selection, accessibility, theming and a flutter_math_fork drop-in.

0.1.0 #

First release.

val_latex_flutter renders LaTeX math in Flutter, using the val_latex engine.

Added #

  • Math.tex — a formula as a widget, sized and coloured by the text style; display mode with equation numbers at the margin.
  • MathText — text with $…$ and $$…$$ formulas in it, wrapping formulas with the words; safe for streaming text.
  • MathSpan — inline math in Text.rich, on the text baseline.
  • Wrapping — display formulas break to the width; MathOverflow scroll, shrink or clip for what cannot break. Baselines are reported in every case.
  • Interaction — onTap, onLongPress, onHover, animated highlights, selection in a SelectionArea that copies LaTeX (copyFormat), and keyboard navigation (focusable).
  • Accessibility — screen readers hear formulas spoken and move through them part by part; the bold-text setting is respected.
  • MathTheme — colours, fonts, fallback fonts and styles per \htmlClass name.
  • MathPainter — draw a layout on any canvas.
  • Caching — MathCache shares parses and layouts between widgets; layoutInBackground lays long formulas out in a worker isolate.
  • flutter_math_compat.dart — a drop-in replacement for package:flutter_math_fork/flutter_math.dart.
  • Latin Modern text fonts bundled for \text{…}.
  • Licence page — the third-party notices of this package and of val_latex appear on Flutter's licence page with no setup (registerValLatexLicenses).
7
likes
0
points
23.1k
downloads

Publisher

verified publisheruseval.io

Weekly Downloads

Render LaTeX math in Flutter: Math and MathText widgets, inline math in text, wrapping, selection, accessibility, theming and a flutter_math_fork drop-in.

Homepage
View/report issues

Topics

#latex #math #widget #equations #typesetting

License

unknown (license)

Dependencies

flutter, val_latex

More

Packages that depend on val_latex_flutter