ratex 0.0.1
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.
RatexMathwidget: async engine init (synchronous rendering, with no loading frame, once initialized),DefaultTextStylecolor inheritance, error/loading builders.RatexMathreports its baseline, so inline formulas align with text in baseline-alignedRows andWidgetSpans, and scales with the ambientTextScaler(override withtextScaler).- Accessibility:
RatexMathannounces a screen-reader label derived from the LaTeX source (override withsemanticLabel); loading and error states are announced as live regions. RatexPainter: paints RaTeX display lists (glyphs via the bundled KaTeX fonts, referenced aspackages/ratex/<family>so consuming apps need no font setup; lines/rects/paths natively).- cargokit integration on Android, iOS, Linux, macOS, and Windows: the
ratex_fficrate builds automatically duringflutter build. Rust is currently required; precompiled binaries are planned. - Web support through the
ratex_dartpackage's WebAssembly backend;RatexFlutter.ensureInitializedcan load the binary from an asset. - Re-exports the full
package:ratex_dartAPI. - Formula-playground example app (native + web).