TexImage class

A rendered image of LaTeX markup. The image is rendered asynchronously by a native web view.

Inheritance

Constructors

TexImage(String math, {bool displayMode = true, Color? color, double? fontSize, Widget? placeholder, ErrorWidgetBuilder? error, AlignmentGeometry alignment = Alignment.center, bool keepAlive = true, Key? key})
const

Properties

alignment AlignmentGeometry
Controls the alignment of the image within its bounding box; see Image.alignment.
final
color Color?
color is the color of the rendered text.
final
displayMode bool
displayMode is KaTeX's displayMode: math will be in display mode (\int, \sum, etc. will be large). This is appropriate for "block" display, as opposed to "inline" display. See also: https://katex.org/docs/options.html
final
error ErrorWidgetBuilder?
A builder supplying a widget to display in case of error, for instance when math contains invalid or unsupported LaTeX syntax. By default it is Icons.error and the error message.
final
fontSize double?
fontSize is the size in pixels of the rendered text. You can use e.g. TextStyle.fontSize as-is.
final
hashCode int
The hash code for this object.
no setterinherited
keepAlive bool
Whether or not the rendered image should be retained even when e.g. the widget has been scrolled out of view in a ListView.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
math String
LaTeX markup to render. See here for supported syntax: https://katex.org/docs/supported.html
final
placeholder Widget?
A widget to display while rendering. By default it is simply math as text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<TexImage>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited