Skip to content

A Flutter Package to render Mathematics, Physics and Chemistry Equations based on LaTeX

License

Notifications You must be signed in to change notification settings

jmanns/flutter_tex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter TeX

A Flutter Package to render so many types of equations based on LaTeX, most commonly used are as followings:

  • Mathematics / Maths Equations (Algebra, Calculus, Geometry, Geometry etc...)

  • Physics Equations

  • Signal Processing Equations

  • Chemistry Equations

  • Statistics / Stats Equations

  • It also includes full HTML with JavaScript support.

Rendering of equations depends on mini-mathjax a simplified version of MathJax a JavaScript library.

This package mainly depends on webview_flutter plugin.

Only Tested on Android not on iOS because I don't own a Mac.

Use this package as a library in your flutter Application

1: Add this to your package's pubspec.yaml file:

dependencies:
  flutter_tex: ^1.0.9

2: You can install packages from the command line:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3: Now in your Dart code, you can use:

import 'package:flutter_tex/flutter_tex.dart';

4: Make sure to add this line android:usesCleartextTraffic="true" in your <project-directory>/android/app/src/main/AndroidManifest.xml under application like this.

<application
       android:usesCleartextTraffic="true">
</application>

For iOS add following code in your <project-directory>/ios/Runner/Info.plist

<key>NSAppTransportSecurity</key>
  
  <dict>
    <key>NSAllowsArbitraryLoads</key> <true/>
  </dict>

<key>io.flutter.embedded_views_preview</key> <true/> 

Example

Complete working application Example

Screenshots

FlutterTeXMaths

FlutterTeXMaths

Tweet Flutter_TeX

About

A Flutter Package to render Mathematics, Physics and Chemistry Equations based on LaTeX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 86.8%
  • Objective-C 8.7%
  • Java 4.5%