Skip to content
pubscout

linkfy_text

1.1.6, released 3 years ago by an unverified publisher

A lightweight Flutter widget that detects URLs, emails and hashtags in text and makes them clickable.

WASM-ready
$ flutter pub add linkfy_text
Source repository

What it does

It parses a string for linkable patterns such as URLs, email addresses, hashtags and user mentions. The widget renders the text with customizable styles and provides a tap callback for each link.

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

Use it when

  • You need simple link detection without heavy dependencies
  • You want customizable link styles in a Text widget
  • You prefer a pure‑Dart solution without platform channels

Skip it when

  • You require advanced rich‑text editing or link creation UI
  • You need support for markdown or HTML rendering
  • You need deep integration with native link handling beyond tap callbacks

Strengths

  • Small footprint and only depends on flutter
  • Easy to use API with style customization
  • Supports hashtags and @mentions out of the box

Weaknesses

  • Limited to link detection; no editing capabilities
  • No built‑in support for opening links (you must handle onTap)
  • No markdown or rich‑text parsing beyond basic patterns

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:linkfy_text/linkify_text.dart';

LinkifyText(
  "Check out https://flutter.dev and #flutter",
  linkStyle: TextStyle(color: Colors.blue),
  LinkTypes: [LinkType.url, LinkType.hashtag],
  onTap: (link) => print('Tapped ${link.value}'),
);

Alternatives

Packages that do the same job and could replace linkfy_text.

  • textf

    Drop-in Text and TextEditingController replacements for inline Markdown-like text formatting

  • re_editor

    A lightweight text and code editor widget for Flutter with syntax highlighting and folding.

  • see_more

    Expandable text widget with trim, linkify, annotations, fade, and programmatic control

  • detectable_text_field

    TextField and Text widgets with built-in detection for hashtags, mentions, and URLs.

Works with

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