val_latex_flutter 0.1.0
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 inText.rich, on the text baseline.- Wrapping — display formulas break to the width;
MathOverflowscroll, shrink or clip for what cannot break. Baselines are reported in every case. - Interaction —
onTap,onLongPress,onHover, animatedhighlights, selection in aSelectionAreathat 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\htmlClassname.MathPainter— draw a layout on any canvas.- Caching —
MathCacheshares parses and layouts between widgets;layoutInBackgroundlays long formulas out in a worker isolate. flutter_math_compat.dart— a drop-in replacement forpackage: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_latexappear on Flutter's licence page with no setup (registerValLatexLicenses).