flutter_spanned_controller library
Classes
- AttributeGestureMapper
- An opaque object, used to manage the lifetimes of GestureRecognizers.
- AttributeSegment
- A range of the source text with the set of attributes that are applied to it.
- AttributeSpan
- A TextAttribute applied to a range of text.
- AttributeTheme
- Theming for TextAttribute.
- AttributeThemeBuilder
- Builder for AttributeThemeData.
- AttributeThemeData
- Map of properties that can be used to theme TextAttribute. Data class for AttributeTheme.
- Range
- A range with a start and end index.
- SpanExpandRules
- Contains an ExpandRule for the start and end boundaries of a span.
- SpanList
- Manages AttributeSpans apart from the text to which they are to be applied.
- SpannedString
- Rich text represented with a String and a SpanList.
- SpannedStringBuilder
- Builds a SpannedString. Can be used fluently with cascades.
- SpannedTextEditingController
- A TextEditingController with rich text capabilities.
- StringDiff
- Result of SpannedTextEditingController.diffStrings.
- TextAttribute
- An attribute to apply to a span of text.
- TextAttributeValue
- Style and gesture handlers that can be applied to a TextSpan.
- ThemedTextAttribute
- Base class for TextAttribute implementations that need an AttributeTheme to resolve their theme.
Enums
- ExpandRule
- Determines if a span expands when AttributeSpan.shift is called at its boundaries.
- OverrideType
- Passed to SpannedTextEditingController.setOverride to indicate if a TextAttribute should be applied or removed.
Extensions
-
AttributeSegmentsExtensions
on Iterable<
AttributeSegment> - Implements buildTextSpan for attribute segments.
- ExpandRuleExtension on ExpandRule
- Extensions for SpanAttachment.
- SpannedTextEditingControllerExtension on SpannedTextEditingController
- High-level convenience methods for SpannedTextEditingController.
Constants
- maxSpanLength → const int
- Maximum length of a span.
Typedefs
- ProcessTextValue = TextEditingValue Function(SpannedTextEditingController, TextEditingValue)
- Used by SpannedTextEditingController to process SpannedTextEditingController.value whenever it changes.