Skip to content
pubscout

flutter_linkify

6.0.0, released 4 years ago by cretezy.com

Turns text URLs and emails into clickable inline links in Flutter.

WASM-ready
$ flutter pub add flutter_linkify
Source repository

What it does

Provides Linkify and SelectableLinkify widgets that automatically detect URLs and email addresses inside text strings and render them as clickable inline links. It supports custom styling, humanization options, and custom handling through callbacks.

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

Use it when

  • You need to display standard text containing URLs or email addresses that users can tap to open.
  • You want selectable text with automatically linkified URLs and emails using SelectableLinkify.

Skip it when

  • You need a full-featured rich text editor rather than static display text.
  • You are parsing non-text formats that do not contain plain URLs or emails.

Strengths

  • Supports both regular and selectable text widgets.
  • Allows custom linkifiers and fine-grained styling options for both links and non-links.
  • Cross-platform support across Android, iOS, Web, Windows, macOS, and Linux.

Weaknesses

  • Requires a separate package like url_launcher to actually open links in the browser or OS.
  • Limited to URLs and emails by default unless custom linkifiers are provided.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add the dependency to pubspec.yaml and optionally add url_launcher to open links externally.

import 'package:flutter_linkify/flutter_linkify.dart';

Linkify(
  onOpen: (link) => print("Clicked ${link.url}!"),
  text: "Made by https://cretezy.com",
)

Alternatives

Packages that do the same job and could replace flutter_linkify.

  • textf

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

  • flutter_link_previewer

    Customizable Flutter widget to fetch and render URL link previews.

  • gpt_markdown

    Powerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.

  • re_editor

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

Works with

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