rich_highlight_text_codespark 0.0.2
rich_highlight_text_codespark: ^0.0.2 copied to clipboard
Adds extension methods to highlight substrings in Text or String using Text.rich and custom styles. Simple inline highlighting with minimal code.
Changelog #
All notable changes to this project will be documented in this file.
0.0.2 - 2025-06-07 #
.toRichText()extension onStringto generate interactive highlightedRichTexteasily.onTapsupport on highlighted substrings viaTapGestureRecognizerreturns a string.
0.0.1 - 2025-06-03 #
🎉 Initial release of rich_highlight_text_codespark!
✨ Features #
- Added
.highlight()extension toTextfor highlighting a single substring. - Added
.highlightMultiple()extension toTextfor multiple substrings. - Support for:
- Case-sensitive and case-insensitive matching.
- Highlighting first, last, or all occurrences (
HighlightModeenum). - Fully customizable
TextStylefor highlighted parts.
- Handles overlapping and adjacent highlights gracefully.
- Unicode-safe: works with international characters and emojis.
- Designed to integrate seamlessly with existing
Textwidgets.
