flutter_tex 1.0.5
flutter_tex: ^1.0.5 copied to clipboard
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");
},
),
],
),
),
);
}
}