Skip to content
pubscout

flutter_parsed_text

2.2.1, released 5 years ago by an unverified publisher

A widget to parse text and extract parts using predefined types or Regex.

WASM-ready
$ flutter pub add flutter_parsed_text
Source repository

What it does

It parses text to render matching parts (like URLs, emails, phone numbers, or custom regex patterns) using different styles and tap callbacks.

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

Use it when

  • You need to highlight and make specific parts of a text clickable (e.g., hashtags, mentions, URLs).
  • You want to avoid writing complex manual splitting logic for RichText strings.

Skip it when

  • You need full HTML rendering support instead of simple pattern matching.

Strengths

  • Supports predefined types like URLs, emails, and phone numbers out of the box.
  • Allows custom regex patterns and display/value mapping.

Weaknesses

  • Limited to pattern-based text parsing rather than full document layout.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ParsedText(
  text: "Contact us at foo@gmail.com or visit http://www.google.com",
  parse: <MatchText>[
    MatchText(
      type: ParsedType.EMAIL,
      style: TextStyle(color: Colors.red),
      onTap: (url) {},
    ),
  ],
)

Alternatives

Packages that do the same job and could replace flutter_parsed_text.

Works with

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