flutter_social_textfield
0.1.2, released 4 years ago by an unverified publisher
TextEditingController and RichText builder for hashtag, url, mention and emoji detection.
WASM-ready
What it does
Provides a customized TextEditingController and RichText span builder that detects common social media elements like hashtags, mentions, URLs, and emojis using regular expressions. It includes event streams for tracking detections and helper widgets for presenting contextual popups above the text field.
AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a social media app or comment section requiring hashtag and mention highlighting.
- You need to detect and make URLs or emojis interactive within a TextField.
- You want to listen to content detection events as the user types.
Skip it when
- You need complex rich-text editing capabilities like bold, italics, or custom paragraph styling.
- You are not using a TextField or TextSpan-based workflow.
Strengths
- Out-of-the-box regex support for hashtags, mentions, URLs, and emojis.
- Provides a detection event stream and tap support for detected items.
- Includes customizable text styles per detected content type.
Weaknesses
- Relies on custom regex modifications for advanced or localized syntax beyond defaults.
- Limited to specific pre-defined detection types (mention, hashtag, url, plain_text).
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
_textEditingController = SocialTextEditingController();
TextField(
controller: _textEditingController,
decoration: InputDecoration(
hintText: "Please Enter a Text"
),
)Alternatives
Packages that do the same job and could replace flutter_social_textfield.
- flutter_taggable
Lightweight TextEditingController extension for user mentions, hashtags, and entity tagging.
48Compare