FLUTTER ECOSYSTEM

rich_text_controller

An extended text editing controller that supports different inline styles for custom regex patterns.

Latest version
3.0.1
30-day downloads
9.7K
Likes
104
Pub points
160

Package Overview

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

Overview

rich_text_controller is a Flutter/Dart package that extends the standard text editing controller to enable inline styling for text based on custom regular expressions. It allows developers to apply different styles—such as colors, fonts, or decorations—to specific patterns within a text field, like hashtags, mentions, or links. Ideal for rich text inputs in messaging apps, note-taking tools, or social media interfaces, it enhances user experience by visually distinguishing structured content. The package supports all major platforms and integrates seamlessly with existing TextEditingController workflows.

Use cases
  • Messaging apps with styled mentions
  • Note-taking apps with syntax highlighting
  • Social media text fields with hashtag styling
  • Custom rich text editors
  • Real-time collaborative editing
Key features
  • Inline styling via regex patterns
  • Support for multiple style types
  • Seamless integration with TextEditingController
  • Cross-platform compatibility
  • Live preview of styled text
  • Configurable pattern matching
Suitable for
  • Developers building rich text input fields
  • Apps requiring dynamic text formatting
  • Projects with user-generated content
  • Teams using regex-based content tagging
  • UIs needing visual distinction of text patterns
Considerations
  • Requires careful regex design to avoid performance issues
  • May increase memory usage with complex patterns
  • Styling logic must be tested across platforms
  • Not suitable for large-scale document editing
  • Limited built-in templates for common use cases
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add rich_text_controller

Categories

Source repository

Related projects