linkable
4.0.0, released 12 months ago by an unverified publisher
A Flutter widget that renders clickable links within text.
What it does
Wraps RichText to detect URLs, email addresses, and phone numbers and makes them tappable. Uses url_launcher to open the appropriate app when a link is pressed. Works on all major Flutter platforms.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need simple clickable links inside plain or rich text.
- You want automatic detection of web URLs, mailto, and tel links without writing custom regexes.
- Cross‑platform support (mobile, web, desktop) is required.
Skip it when
- You need full markdown rendering or advanced rich‑text features.
- You require extensive styling per link or custom link actions beyond opening URLs.
- You prefer a solution that does not depend on url_launcher.
Strengths
- Zero‑configuration detection of URLs, emails, and phone numbers
- Works out‑of‑the‑box on Android, iOS, web, and desktop
- Lightweight wrapper around existing RichText widget
Weaknesses
- Limited to basic link detection and styling
- Relies on url_launcher, adding extra dependency and native setup
- No markdown or rich‑text parsing beyond simple links
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add url_launcher to pubspec. On Android add <queries> entries in AndroidManifest.xml; on iOS add LSApplicationQueriesSchemes for tel in Info.plist.
import 'package:linkable/linkable.dart';
Linkable(
text: "Visit https://example.com or email me@example.com.",
);Alternatives
Packages that do the same job and could replace linkable.
- flutter_link_previewer
Customizable Flutter widget to fetch and render URL link previews.
91Compare - text_scroll
A Flutter widget that auto‑scrolls overflowing text like a marquee.
89Compare - selectable
A widget that enables text selection across multiple text widgets.
77Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare
Works with
Packages commonly used together with linkable: ones it builds on, ones built on it, and its own family.