rich_text_view
1.3.0, released 3 years ago by nelsoneze.com
RichTextView renders text with mentions, hashtags, emails, URLs and view‑more support.
What it does
It parses a string and turns special patterns into tappable widgets. RichTextEditor adds an input field with mention/hashtag suggestions.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need inline links or mentions in a read‑only text block
- You want a view‑more / view‑less toggle
- You need a simple editor with mention/hashtag suggestions
Skip it when
- You need complex custom parsing beyond the provided parsers
- You require full‑blown rich text editing with formatting controls
Strengths
- Easy to use declarative API
- Supports many common patterns out of the box
- View‑more/less toggle built‑in
- Editor with suggestion controller
Weaknesses
- Limited to predefined parsers, custom parsing requires extending ParserType
- No support for advanced formatting (e.g., tables)
- No built‑in theming beyond TextStyle
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
RichTextView(
text: "Hello @user #tag https://example.com",
supportedTypes: [
MentionParser(onTap: (m) => print(m.value)),
HashTagParser(onTap: (h) => print(h.value)),
UrlParser(onTap: (u) => print(u.value)),
],
linkStyle: TextStyle(color: Colors.blue),
maxLines: 3,
truncate: true,
viewLessText: 'less',
);Alternatives
Packages that do the same job and could replace rich_text_view.
- see_more
Expandable text widget with trim, linkify, annotations, fade, and programmatic control
56Compare - textf
Drop-in Text and TextEditingController replacements for inline Markdown-like text formatting
81Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - fleather
A clean, minimalistic and collaboration-ready rich text editor for Flutter.
80Compare