Skip to content
pubscout

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.

WASM-ready
$ flutter pub add v_chat_mention_controller
Source repository

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.

Works with

Packages commonly used together with v_chat_mention_controller: ones it builds on, ones built on it, and its own family.