v_chat_mention_controller
2.0.1, released 2 weeks ago by vchatsdk.com
Flutter text editing controller for styled mentions, debounced user search, and markup.
What it does
Provides a custom text editing controller that detects mention symbols (like '@'), supports debounced user searching, handles mention insertion, and outputs structured markup text.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to add user tagging or mention support to a text input field
- You want built-in debounced searching when a user types a mention trigger
Skip it when
- You are using a Flutter version older than 3.47
- You do not need text editing controllers for structured mentions
Strengths
- Supports debounced search out of the box
- Allows custom mention styling and widget support
- Works across multiple platforms including Android, iOS, Web, Windows, macOS, and Linux
Weaknesses
- Requires manual disposal of the controller
- Requires an external package like flutter_parsed_text to render the mention text
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires Flutter 3.47 or newer and Dart >=3.13.0 <4.0.0. Call dispose when exiting the screen.
final controller = VChatTextMentionController(
debounce: 500,
mentionStyle: const TextStyle(
color: Colors.deepPurple,
fontWeight: FontWeight.w800,
),
);Alternatives
Packages that do the same job and could replace v_chat_mention_controller.
- rich_text_controller
An extended text editing controller supporting different inline styles for custom regex patterns.
58Compare - flutter_masked_text2
Masked and money text input controllers for Flutter text fields.
50Compare
Works with
Packages commonly used together with v_chat_mention_controller: ones it builds on, ones built on it, and its own family.
- v_video_compressorSame familyFlutter plugin for video compression and thumbnail generation using native APIs.
- v_story_viewerSame familyA high-performance Flutter story viewer package inspired by Instagram and WhatsApp stories.
- v_chat_voice_playerSame familyVoice message playback widget with animated waveform, speed controls, and user avatars.
- v_chat_bubblesSame familyA comprehensive Flutter chat bubble library supporting Telegram, WhatsApp, Messenger, and iMessage styles.