Search packages, repositories and app categories

link_text cover
Package detailsv0.2.1

link_text

Easy to use text widget for Flutter apps, which converts inlined URLs into clickable links. Allows custom styling.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3.3K
Likes
49
Pub points
140

Install package

flutter pub add link_text

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that simplifies creating clickable links within text by automatically detecting and converting URLs in a Text widget into interactive links. It supports custom styling for both the link and surrounding text, making it ideal for rich text displays in apps. The package is lightweight and works across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Perfect for displaying content with embedded links without complex parsing or manual gesture handling.

Use cases

  • Displaying blog posts with clickable URLs
  • Creating user-generated content with auto-linked web addresses
  • Building chat interfaces with clickable links
  • Enhancing help or FAQ sections with navigable references
  • Adding interactive elements to static text content

Key features

  • Automatic URL detection in text
  • Customizable link styling
  • Cross-platform compatibility
  • Simple integration with existing Text widgets
  • Supports multiple platforms (Android, iOS, Web, macOS, Windows, Linux)

Suitable for

  • Developers building content-rich Flutter apps
  • Apps requiring dynamic link rendering
  • Teams wanting minimal setup for clickable text
  • Projects with user-generated or fetched text data
  • UI designers seeking rich text functionality

Considerations

  • May require additional logic for complex text patterns
  • Styling overrides might affect readability
  • Not optimized for very long texts with many links
  • Limited to URL detection, not other link types like email or tel
  • Performance impact on extremely large text blocks

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

LinkText

Pub Package

Easy to use text widget for Flutter apps, which converts inlined URLs into clickable links. Allows custom styling.

Image

Usage

LinkText widget does not require any setup. Simply pass a String with inlined URLs, and the widget will take care of the rest.

final String _text = 'Lorem ipsum https://flutter.dev\nhttps://pub.dev';

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: LinkText(
        _text,
        textAlign: TextAlign.center,
        // You can optionally handle link tap event by yourself
        // onLinkTap: (url) => ...
      ),
    ),
  );
}
Installation

Add to pubspec.yaml:

dependencies:
  link_text: ^0.2.1

For more info, check out example project.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package