flutter_tex library

A Flutter package to render (MathML, TeX and LaTeX) on Mobile (Android, iOS) and Web.

Classes

BytesLoader
An interface that can be implemented to support decoding vector graphic binary assets from different byte sources.
Cache
The cache for decoded SVGs.
ColorMapper
A class that transforms from one color to another during SVG parsing.
DefaultSvgTheme
The SVG theme to apply to descendant SvgPicture widgets which don't have explicit theme values.
Math2SVG
PictureInfo
The deocded result of a vector graphics asset.
PictureProvider
Deprecated class, will be removed, does not do anything.
Svg
A utility class for decoding SVG data to a DrawableRoot or a PictureInfo.
SvgAssetLoader
A BytesLoader that decodes and parses an SVG asset in an isolate and creates a vector_graphics binary representation.
SvgBytesLoader
A BytesLoader that decodes and parses a UTF-8 encoded SVG string from a Uint8List in an isolate and creates a vector_graphics binary representation.
SvgCacheKey
A SvgTheme aware cache key.
SvgFileLoader
A BytesLoader that decodes SVG data from a file in an isolate and creates a vector_graphics binary representation.
SvgLoader<T>
A BytesLoader that parses a SVG data in an isolate and creates a vector_graphics binary representation.
SvgNetworkLoader
A BytesLoader that decodes and parses a UTF-8 encoded SVG string the network in an isolate and creates a vector_graphics binary representation.
SvgPicture
A widget that will parse SVG data for rendering on screen.
SvgStringLoader
A BytesLoader that parses an SVG string in an isolate and creates a vector_graphics binary representation.
SvgTheme
A theme used when decoding an SVG picture.
TeXRenderingServer
The standard (Mobile/Desktop) implementation of TeXRenderingServer.
TeXView
A widget for rendering TeX (LaTeX, MathML, etc.) content with HTML and JavaScript support.
TeXViewBorder
Defines the border for a TeXView widget.
TeXViewBorderDecoration
Defines the visual decoration of a border, including its width, style, and color.
TeXViewBorderRadius
Defines the radius for the corners of a TeXView widget's border.
TeXViewColumn
A TeXViewWidget that displays its children in a vertical linear array.
TeXViewContainer
A widget that contains a single child TeXViewWidget with styling options.
TeXViewDetails
A widget that provides a disclosure widget in which information is visible only when the widget is toggled into an "open" state.
TeXViewDocument
A widget that renders a document containing HTML and TeX content.
TeXViewFont
Represents a custom font to be used within a TeXView.
TeXViewFontStyle
Defines the font styling for text within a TeXView.
TeXViewImage
A widget that displays an image within a TeXView.
TeXViewInkWell
A widget that responds to taps with a visual ripple effect.
TeXViewMargin
Defines the margin for a TeXView widget, controlling the space around it.
TeXViewMarkdown
A widget that renders Markdown content, including support for embedded TeX code.
TeXViewOverflowHelper
A helper class for TeXViewOverflow.
TeXViewPadding
Defines the padding for a TeXView widget, controlling the space inside its border.
TeXViewStyle
A comprehensive styling class for TeXView and its child widgets.
TeXViewTextAlignHelper
A helper class for TeXViewTextAlign.
TeXViewVideo
A widget that embeds a video (e.g., YouTube) within a TeXView.
TeXViewWidget
An abstract class representing a widget within the TeXView hierarchy.
TeXWidget
A widget to render TeX segments, which can be inline or display math. Currently, it only supports rendering TeX.
UnitHelper
A helper class for TeXViewSizeUnit.
VectorGraphicUtilities
Utility functionality for interaction with vector graphic assets.

Enums

MathInputType
The type of input math to be rendered.
TeXDelimiter
The delimiter used to identify the TeX segment.
TeXPackage
The list of supported TeX packages.
TeXSegmentType
The type of the TeX segment which can be either text, inline or display.
TeXViewBorderStyle
An enumeration of possible border styles, corresponding to CSS border-style values.
TeXViewFontWeight
An enumeration of possible font weights, corresponding to CSS font-weight values.
TeXViewOverflow
An enumeration of how to handle content that overflows its container's box.
TeXViewSizeUnit
An enumeration of CSS size units used for styling TeXView components.
TeXViewTextAlign
An enumeration of text alignment options for TeXView.

Constants

vg → const VectorGraphicUtilities
The VectorGraphicUtilities instance.

Properties

svg Svg
Instance for Svg's utility methods, which can produce a DrawableRoot or PictureInfo from String or Uint8List.
final

Typedefs

SvgErrorWidgetBuilder = Widget Function(BuildContext context, Object error, StackTrace stackTrace)
Builder function to create an error widget. This builder is called when the image failed loading.