Skip to content
pubscout

fluttertagger

2.3.2, released 8 months ago by an unverified publisher

Extend Flutter TextFields to support tagging capabilities like user mentions and hashtags.

WASM-ready
$ flutter pub add fluttertagger
Source repository

What it does

FlutterTagger extends standard Flutter TextFields to enable tagging triggers such as '@' and '#'. It provides callbacks for search queries, custom styling for tagged results, and controllers to retrieve formatted text and tags.

AI-written summary of version 2.3.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a social media or messaging app requiring user mentions.
  • You need hashtag highlighting and extraction inside text fields.

Skip it when

  • You only need standard text input without custom trigger characters or inline tagging overlays.

Strengths

  • Supports multiple trigger characters and styles simultaneously.
  • Includes customizable overlay views for search results.
  • Provides clean access to formatted text and applied tags.

Weaknesses

  • Relies on a specific controller and builder pattern which might require restructuring existing text input code.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

FlutterTagger(
  controller: flutterTaggerController,
  onSearch: (query, triggerCharacter) {},
  triggerCharacterAndStyles: const {
    '@': TextStyle(color: Colors.pinkAccent),
    '#': TextStyle(color: Colors.blueAccent),
  },
  overlay: SearchResultView(),
  builder: (context, textFieldKey) {
    return TextField(
      key: textFieldKey,
      controller: flutterTaggerController,
    );
  },
)

Alternatives

Packages that do the same job and could replace fluttertagger.