custom_text library

Classes

CustomText
A text widget that decorates strings in it and enables tap, long-press and/or hover gestures based on flexible definitions.
CustomTextEditingController
A variant of TextEditingController that decorates strings in an editable text field and enables tap, long-press and/or hover gestures based on flexible definitions.
Definition
The base class for definitions of rules for parsing, appearance and actions for CustomText and CustomTextEditingController.
EmailMatcher
A variant of TextMatcher for parsing email addresses.
GestureDetails
A class with details on a gesture and the element where the gesture was detected.
LinkMatcher
A variant of TextMatcher for parsing Markdown link format.
ParserOptions
A class that configures how a regular expressions are treated.
PatternMatcher
A variant of TextMatcher that takes a regular expression pattern as a parameter.
SelectiveDefinition
A class that defines rules for parsing, appearance and actions for CustomText and CustomTextEditingController.
SpanDefinition
A class that defines rules for parsing, appearance and widget to be displayed inside CustomText.
TelMatcher
A variant of TextMatcher for parsing phone numbers.
TextDefinition
A class that defines rules for parsing, appearance and actions for CustomText and CustomTextEditingController.
TextElement
A class that holds the information of a parsed element.
TextMatcher
A base class of matchers used to provide TextParser with match patterns for parsing.
TextParser
A class that parses text according to specified matchers.
UrlMatcher
A variant of TextMatcher for parsing URLs.

Enums

GestureKind

Typedefs

ActionTextSelector = String Function(List<String?>)
The signature for a callback to select a string to be passed to gesture callbacks.
ShownTextSelector = String Function(List<String?>)
The signature for a callback to select a string to display.
SpanBuilder = InlineSpan Function(String, List<String?>)
The signature for a callback to return an InlineSpan to be used as part of the text to display.