FLUTTER ECOSYSTEM

flutter_decorated_text

A widget to style and interact with parts of a text based on rules. Match words, phrases, or patterns and apply custom styles or actions.

flutter_decorated_text cover
Latest version
2.2.0
30-day downloads
286
Likes
60
Pub points
155

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter package that enables styling and interaction with specific parts of text using defined rules. It allows matching words, phrases, or patterns and applying custom styles or actions such as onTap events. Ideal for creating rich text displays with dynamic formatting, like highlighting keywords, embedding links, or adding animations to certain text segments. Works across all major platforms including mobile, web, and desktop.

Use cases
  • Highlighting keywords in text
  • Creating interactive text with tap actions
  • Embedding styled links within paragraphs
  • Adding animations to specific text segments
  • Displaying formatted content with dynamic rules
  • Rich text rendering in chat or article apps
Key features
  • Pattern-based text matching
  • Custom style application per match
  • Interactive callbacks (e.g., onTap)
  • Support for multiple rules simultaneously
  • Cross-platform compatibility
  • Easy integration with existing Text widgets
Suitable for
  • Developers building rich text interfaces
  • Apps requiring keyword highlighting
  • Chat or messaging applications
  • Content-rich educational or news apps
  • UIs with dynamic text formatting needs
  • Projects needing interactive text elements
Considerations
  • Performance may impact large text blocks
  • Complex regex patterns require careful testing
  • Limited built-in emoji support beyond basic styling
  • Requires understanding of text pattern matching
  • May need additional logic for nested or overlapping matches
  • Not intended for full-featured rich text editors
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_decorated_text

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

No data available yet.