Search packages, repositories and app categories

linkwell cover
Package detailsv2.0.6

linkwell

LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in users browsers,

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.2K
Likes
82
Pub points
130

Install package

flutter pub add linkwell

Package Overview

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

LinkWell is a Flutter plugin that automatically detects URLs and email addresses within text strings. When users tap on these links, they are opened directly in the device's default browser. Designed for rich text handling, it enhances user experience by making hyperlinks interactive without requiring manual parsing or custom gesture detectors. The plugin supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent behavior across devices. It integrates seamlessly with Flutter’s Text widget, enabling developers to add clickable links with minimal setup.

Use cases

  • Adding clickable links to app descriptions
  • Enabling email interaction in chat messages
  • Improving readability in rich text content
  • Automating link detection in user-generated text
  • Displaying web references in documentation views

Key features

  • Automatic URL and email detection
  • Tappable links open in default browser
  • Cross-platform compatibility
  • Simple integration with Flutter Text widget
  • Supports all major operating systems

Suitable for

  • Apps with dynamic text content
  • Chat or messaging interfaces
  • Documentation or help sections
  • User profile bios with links
  • Content-rich educational apps

Considerations

  • Does not support custom link styling
  • Limited to URL and email types
  • No built-in link preview
  • Requires manual handling of long-press or context menus
  • May need additional logic for deep linking

Original README

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

LinkWell

LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in user browsers,

linkwell pub package

GitHub

ScreenShots

Basic Usage Named Links

Usage

Basic:

import 'package:linkwell/linkwell.dart';
LinkWell(
    "Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com"
);
Add Styling

To add style to links

LinkWell(
    "Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com",
    linkStyle: TextStyle(color: Colors.blue,fontSize: 17)
);

To add style to non links

LinkWell(
    "Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com",
    style: TextStyle(color: Colors.black,fontSize: 17)
);
Naming Links

If you would like to name the links

LinkWell(
    "By registering you agree to our samuelezedi.com/terms and samuelezedi.com/privacy",
    listOfNames: {
        'samuelezedi.com/terms' : 'Terms',
        'samuelezedi.com/privacy' : 'Privacy Policy'
    },
);

Why I made this plugin

I was building a chat application and I needed to detect when users posted links and emails so I went online and found a couple plugin but then, only one fit the need, I imported it and discovered that it could not detect emails and long urls correctly and I could not name URLs or emails, So I built LinkWell. I hope this is what you are looking for and it solves your link problems.

Kindly follow me on

twitter medium instagram

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package