flutter_tex 1.0.5 copy "flutter_tex: ^1.0.5" to clipboard
flutter_tex: ^1.0.5 copied to clipboard

outdated

A Flutter Package to render Mathematics / Maths, Physics and Chemistry, Statistics / Stats Equations based on LaTeX with full HTML and JavaScript support.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_tex/flutter_tex.dart';

import 'teXHTML.dart';

main() async {
  runApp(FlutterTeX());
}

class FlutterTeX extends StatefulWidget {
  @override
  _FlutterTeXState createState() => _FlutterTeXState();
}

class _FlutterTeXState extends State<FlutterTeX> {
  String text = teXHTML;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("Flutter TeX Example"),
        ),
        body: ListView(
          children: <Widget>[
            TeXView(
              teXHTML: text,
              onRenderFinished: (height) {
                print("Height is : $height");
              },
              onPageFinished: () {
                print("Page Loading finished");
              },
            ),TeXView(
              teXHTML: text,
              onRenderFinished: (height) {
                print("Height is : $height");
              },
              onPageFinished: () {
                print("Page Loading finished");
              },
            ),TeXView(
              teXHTML: text,
              onRenderFinished: (height) {
                print("Height is : $height");
              },
              onPageFinished: () {
                print("Page Loading finished");
              },
            ),TeXView(
              teXHTML: text,
              onRenderFinished: (height) {
                print("Height is : $height");
              },
              onPageFinished: () {
                print("Page Loading finished");
              },
            ),TeXView(
              teXHTML: text,
              onRenderFinished: (height) {
                print("Height is : $height");
              },
              onPageFinished: () {
                print("Page Loading finished");
              },
            ),TeXView(
              teXHTML: text,
              onRenderFinished: (height) {
                print("Height is : $height");
              },
              onPageFinished: () {
                print("Page Loading finished");
              },
            ),
          ],
        ),
      ),
    );
  }
}
278
likes
0
pub points
95%
popularity

Publisher

verified publishershahxad.com

A Flutter Package to render Mathematics / Maths, Physics and Chemistry, Statistics / Stats Equations based on LaTeX with full HTML and JavaScript support.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_tex