linkify_plus pub package

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

Required Dart >=2.12 (has null-safety support).

Pub - API Docs - GitHub


Install by adding this package to your pubspec.yaml:

  linkify_plus: ^5.0.2

It is highly recommend that you also add a dependency on url_launcher to open links in the browser/OS.



import 'package:linkify_plus/linkify_plus.dart';

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


Add a style to non-links (yellow) or links (red), and open in browser using url_launcher:

import 'package:linkify_plus/linkify_plus.dart';
import 'package:url_launcher/url_launcher.dart';

  onOpen: (link) async {
    if (await canLaunch(link.url)) {
        await launch(link.url);
      } else {
        throw 'Could not launch $link';
  text: "Made by",
  style: TextStyle(color: Colors.yellow),
  linkStyle: TextStyle(color:,

All RichText options are available for use.

Linkify Options

By default, humanization (removal of http:// or https:// from the start of the URL) is enabled. You may disable it by passing options:

  text: "Made by",
  options: LinkifyOptions(humanize: false),

Selectable Text

Use the SelectableLinkify widget to create selectable text. All SelectableText options are available for use.

  text: "Made by\n\nMail:",


In the onOpen callback, a LinkableElement is passed in. You can check if it is a UrlElement or EmailElement using is for custom handling.

You can enable parsing of only some link types using the linkifiers option. URL and email are enabled by default.

Full example can be found at example/lib/main.dart.

Example Screenshot