super_text_layout library

Classes

BlinkController
Controls the visibility of something that blinks.
CaretPainter
CaretStyle
DottedUnderlinePainter
DottedUnderlineStyle
InlineAssetImagePlaceholder
A placeholder to be given to an AttributedText, and later replaced within an inline asset image.
InlineNetworkImagePlaceholder
A placeholder to be given to an AttributedText, and later replaced within an inline network image.
LayoutAwareRichText
A version of RichText that notifies clients when the underlying RenderParagraph invalidates its layout, so that clients can avoid accessing properties when the layout is invalid.
LineSegment
MultiLayerBuilder
A SuperTextLayerBuilder that combines multiple other layers into a single layer, to be displayed above or beneath SuperText.
ProseTextBlock
A block of text (probably a widget's State object) that includes a ProseTextLayout somewhere within it.
ProseTextLayout
A TextLayout that includes queries that pertain specifically to prose-style text, i.e., regular human-to-human text - not code, or phone numbers, or dates.
ProseTextState<T extends StatefulWidget>
A State object that mixes in ProseTextBlock, which is a useful base class for State objects that include a TextLayout in their widget sub-tree.
RenderLayoutAwareParagraph
A RenderParagraph that publicly reports whether or not its layout is valid, and also accepts a callback to notify a listener when the layout is marked invalid.
RenderParagraphProseTextLayout
A ProseTextLayout that's backed by a RenderLayoutAwareParagraph, which is essentially a RenderParagraph.
RenderSuperTextLayout
SelectionHighlightStyle
Visual styles for a selection highlight.
SelectionSource
The source of a given text selection, e.g., a user, like "John", or a type of selection, like "textSearchMatch".
SquiggleUnderlinePainter
SquiggleUnderlineStyle
StraightUnderlinePainter
StraightUnderlineStyle
SuperText
Displays text with a visual layer above the text, and a visual layer beneath the text, which can be used to add text decorations, like selections and carets.
SuperTextAnalytics
SuperTextState
SuperTextWithSelection
Displays rich text with traditional text carets and selection highlights.
TextLayout
Contract to interrogate the layout of a blob of text.
TextLayoutCaret
TextLayoutCaretState
TextLayoutEmptyHighlight
TextLayoutSelectionHighlight
TextLayoutUnderline
TextSelectionPainter
Paints selection highlight rectangles around a textSelection in a given textLayout using the desired selectionColor.
TextUnderlineLayer
A SuperText layer that displays an underline beneath the text within a given selection.
TextUnderlineLayerState
UnderlineStyle
UserSelection
A user's selection, including a highlight style, caret style, and the logical TextSelection.

Enums

BlinkTimingMode
The way a blinking caret tracks time.

Constants

selectionHighlightBoxVerticalExpansion → const double
How bigger the selection highlight box is than the natural selection box of the text in dip.

Functions

paragraphExpansionFilter(String text, TextPosition startingPosition, TextAffinity affinity) TextSelection
TextExpansion function that expands from startingPosition in both directions to select a single paragraph.

Typedefs

SuperTextLayerBuilder = Widget Function(BuildContext, TextLayout textLayout)
TextExpansion = TextSelection Function(String text, TextPosition startingPosition, TextAffinity affinity)
Function that expands from a given startingPosition to an expanded TextSelection, based on some expansion decision behavior.