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

outdated

A lightweight TeX plugin that uses KaTeX (JavaScript) in a native web view to render to PNG

flutter_tex_js #

A lightweight TeX plugin for Flutter based on KaTeX, a popular and full-featured JavaScript TeX rendering library.

What's different about this plugin? #

As of July 2020, there are several other TeX packages/plugins for Flutter, but most of them are either a) very heavyweight, relying on webview_flutter, or b) very immature, with poor support for common TeX syntax.

This plugin seeks a middle ground: It uses a single native webview under the hood, in which it renders TeX markup to PNG. It then sends the PNG bytes back to the Dart world where the result is displayed as an image.

Usage #

import 'package:flutter_tex_js/flutter_tex_js.dart';

class MyMathWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return TexImage(r'a=\pm\sqrt{b^2+c^2} \int_\infty^\beta d\gamma');
  }
}
10
likes
0
pub points
74%
popularity

Publisher

verified publishermadlon-kay.com

A lightweight TeX plugin that uses KaTeX (JavaScript) in a native web view to render to PNG

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_tex_js