Skip to content
pubscout

simple_rich_text

2.0.49, released 6 years ago by onlyup.com

Display formatted rich text using simple characters like asterisks and slashes.

WASM-ready
$ flutter pub add simple_rich_text
Source repository

What it does

Allows developers to style text easily by using standard characters like asterisks for bold and slashes for italics. It also supports colors and basic navigation attributes via curly brackets.

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

Use it when

  • You want a low-friction way to add inline bold, italics, underlines, and colors to strings.
  • You want simple text-based hyperlinks that interact with the navigation stack.

Skip it when

  • You require full markdown compliance.
  • You need user-definable custom formatting callback functions.

Strengths

  • Very low development friction compared to traditional RichText or pattern-matching packages.
  • Supports basic routing and color configurations inline using curly brackets.

Weaknesses

  • Non-standard formatting characters that are not markdown-compatible.
  • Lacks user-definable format characters and custom formatting callbacks.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Ancestor must have textDirection set explicitly or through MaterialApp.

SimpleRichText(r'*_/this is all three*_/ (*{color:red}bold*, _{color:green}underlined_, and /{color:brown}italicized/)')

Alternatives

Packages that do the same job and could replace simple_rich_text.

Works with

Packages commonly used together with simple_rich_text: ones it builds on, ones built on it, and its own family.