fluttertagger
2.3.2, released 8 months ago by an unverified publisher
Extend Flutter TextFields to support tagging capabilities like user mentions and hashtags.
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.
- flutter_taggable
Lightweight TextEditingController extension for user mentions, hashtags, and entity tagging.
48Compare - mention_tag_text_field
Adds mention and tagging capabilities to TextField or TextFormField widgets in Flutter.
48Compare - flutter_signature_pad
Flutter widget for drawing signatures by finger and exporting them as images.
50Compare - textfield_tags
A text field that allows an input of tags inside the textfield
50Compare