typeset
2.3.0, released 2 years ago by rohanjsh.dev
WhatsApp-like text styling widget and controller for Flutter with support for bold, italic, and links.
What it does
Provides a custom Text widget and a TextEditingController that automatically format text based on WhatsApp-style syntax markers like asterisks for bold, underscores for italics, and hashes for underlines. It supports backend-driven styling, custom link recognizers, and text selection context menus.
AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to implement chat messaging text formatting similar to WhatsApp or Telegram.
- You need backend-driven text styling without complex custom parsing code.
- You require a TextField controller that previews formatted text in real-time.
Skip it when
- You need a full rich-text WYSIWYG editor with multiple fonts and complex paragraph formatting.
- You are using a text rendering format entirely incompatible with marker-based syntax.
Strengths
- Familiar WhatsApp-like syntax that users already understand.
- Includes both a custom display widget and a TypeSetEditingController for input fields.
- Lightweight with minimal dependencies.
Weaknesses
- Requires escaping characters if you need literal usage of formatting markers like asterisks.
- Limited to predefined formatting syntax styles (bold, italic, strikethrough, underline, monospace, links, font size).
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:typeset/typeset.dart';
TypeSet('Hello *Flutter* developers!');Alternatives
Packages that do the same job and could replace typeset.
- text_editor
An Instagram-like text editor widget for editing text style, size, color, and alignment.
45Compare
Works with
Packages commonly used together with typeset: ones it builds on, ones built on it, and its own family.