flutter_interactive_text library
Theme-aware interactive text with optional expansion for Flutter.
Classes
- EmojiInteractiveTextDetector
- Detects complete Unicode grapheme clusters that represent emoji.
- FunctionInteractiveTextDetector
- Adapts arbitrary synchronous matching logic into a detector.
- InteractiveText
- Detects, styles, and handles rich text patterns with optional expansion.
- InteractiveTextCharacterPolicies
- Common character policies for trigger-based detectors.
- InteractiveTextDetection
- A detected source range before parser conflict resolution.
- InteractiveTextDetector
- Finds one category of interactive ranges in source text.
- InteractiveTextDetectors
- Built-in detector factories and reusable detector catalogs.
- InteractiveTextEmoji
- Unicode-aware helpers used by interactive emoji rendering.
- InteractiveTextExpansion
-
Configures optional collapsed and expanded rendering for
InteractiveText. - InteractiveTextGroups
- Curated groups of built-in text types for common display experiences.
- InteractiveTextMatch
-
A validated text match returned by
InteractiveTextParser. - InteractiveTextParser
- Runs detectors and resolves overlapping matches by priority.
- InteractiveTextStyleContext
- Information supplied when resolving the final style of a match.
- InteractiveTextStyles
- Theme-aware defaults and optional style overrides for detected text.
- InteractiveTextType
- Identifies a detected text category without restricting custom detectors.
- RegexInteractiveTextDetector
- Detects interactive ranges using a regular expression.
- TriggerInteractiveTextDetector
- Detects ranges that begin with a configurable trigger.
Typedefs
- InteractiveTextCharacterPredicate = bool Function(String grapheme)
- Decides whether a grapheme may occur after a trigger.
-
InteractiveTextDetectionFinder
= Iterable<
InteractiveTextDetection> Function(String text) -
Function that returns raw detections for source
text. - InteractiveTextExpansionChanged = void Function(bool expanded)
- Called after expandable text changes between collapsed and expanded states.
- InteractiveTextRegexDataBuilder = Object? Function(RegExpMatch match, String text)
- Creates optional metadata for a regular-expression match.
- InteractiveTextRegexValidator = bool Function(RegExpMatch match, String text)
- Validates whether a regular-expression match should become interactive.
- InteractiveTextStartBoundaryPredicate = bool Function(String text, int triggerStart)
- Decides whether a trigger may begin at a source offset.
- InteractiveTextStyleResolver = TextStyle Function(InteractiveTextStyleContext details)
- Resolves the final style for an individual detected match.
-
InteractiveTextTapCallback
= FutureOr<
void> Function(InteractiveTextMatch match) - Handles a tap on a detected piece of interactive text.