Skip to main content

ratex 0.0.1 copy "ratex: ^0.0.1" to clipboard
ratex: ^0.0.1 copied to clipboard

KaTeX-compatible math rendering for Flutter. Builds the Rust RaTeX engine with cargokit, paints formulas with bundled KaTeX fonts, and runs on the web via WebAssembly.

0.0.1 #

  • Initial release.
  • RatexMath widget: async engine init (synchronous rendering, with no loading frame, once initialized), DefaultTextStyle color inheritance, error/loading builders.
  • RatexMath reports its baseline, so inline formulas align with text in baseline-aligned Rows and WidgetSpans, and scales with the ambient TextScaler (override with textScaler).
  • Accessibility: RatexMath announces a screen-reader label derived from the LaTeX source (override with semanticLabel); loading and error states are announced as live regions.
  • RatexPainter: paints RaTeX display lists (glyphs via the bundled KaTeX fonts, referenced as packages/ratex/<family> so consuming apps need no font setup; lines/rects/paths natively).
  • cargokit integration on Android, iOS, Linux, macOS, and Windows: the ratex_ffi crate builds automatically during flutter build. Rust is currently required; precompiled binaries are planned.
  • Web support through the ratex_dart package's WebAssembly backend; RatexFlutter.ensureInitialized can load the binary from an asset.
  • Re-exports the full package:ratex_dart API.
  • Formula-playground example app (native + web).
0
likes
150
points
681
downloads

Documentation

API reference

Publisher

verified publishermanymath.com

Weekly Downloads

KaTeX-compatible math rendering for Flutter. Builds the Rust RaTeX engine with cargokit, paints formulas with bundled KaTeX fonts, and runs on the web via WebAssembly.

Repository (GitHub)
View/report issues

Topics

#latex #katex #math #rendering #ffi

License

MIT (license)

Dependencies

flutter, ratex_dart

More

Packages that depend on ratex

Packages that implement ratex