Skip to content
pubscout

link_text

0.2.1, released 3 years ago by an unverified publisher

Flutter text widget that automatically converts inlined URLs into clickable links.

WASM-ready
$ flutter pub add link_text
Source repository

What it does

The LinkText widget parses strings containing inlined URLs and renders them as clickable links. It allows custom styling and supports optional tap event handlers and URL parameter trimming.

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

Use it when

  • You need to display text containing URLs that users can tap to open.
  • You want a drop-in replacement for the standard Text widget with automatic linkification.

Skip it when

  • You need complex rich text formatting with multiple custom gesture recognizers other than links.

Strengths

  • Zero setup required out of the box.
  • Allows custom styling and overriding default link tap behavior.
  • Supports trimming link parameters for better readability.

Weaknesses

  • Limited to linkifying URLs rather than general rich text parsing (mentions, hashtags, etc.).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
LinkText(
  'Lorem ipsum https://flutter.dev',
  textAlign: TextAlign.center,
)

Alternatives

Packages that do the same job and could replace link_text.

Works with

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