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 regular expressions are treated in the default parser or specifies a different parser to use.
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.
UrlLikeMatcher
A variant of TextMatcher for parsing URL-like strings.
UrlMatcher
A variant of TextMatcher for parsing URLs that start with http(s).

Extensions

TextElementsExtension
Extensions on a collection of TextElement.

Enums

GestureKind

Typedefs

ActionTextSelector = String Function(List<String?>)
The signature for a callback to select a string to be passed to gesture callbacks.
ExternalParser = Future<List<TextElement>> Function(String)
The signature for an external parser function.
GestureCallback = void Function(GestureDetails)
The signature for a callback to return a GestureDetails.
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.