rich_highlight_text_codespark 0.0.2 copy "rich_highlight_text_codespark: ^0.0.2" to clipboard
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 on String to generate interactive highlighted RichText easily.
  • onTap support on highlighted substrings via TapGestureRecognizer returns a string.

0.0.1 - 2025-06-03 #

🎉 Initial release of rich_highlight_text_codespark!

✨ Features #

  • Added .highlight() extension to Text for highlighting a single substring.
  • Added .highlightMultiple() extension to Text for multiple substrings.
  • Support for:
    • Case-sensitive and case-insensitive matching.
    • Highlighting first, last, or all occurrences (HighlightMode enum).
    • Fully customizable TextStyle for highlighted parts.
  • Handles overlapping and adjacent highlights gracefully.
  • Unicode-safe: works with international characters and emojis.
  • Designed to integrate seamlessly with existing Text widgets.
5
likes
150
points
60
downloads
screenshot

Publisher

verified publisherksaikiran.tech

Weekly Downloads

Adds extension methods to highlight substrings in Text or String using Text.rich and custom styles. Simple inline highlighting with minimal code.

Repository (GitHub)

Topics

#text #highlight #richtext #inline-style #textspan

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on rich_highlight_text_codespark