Skip to content
pubscout

hyperlink

0.0.5, released 3 years ago by an unverified publisher

A Flutter package for rendering text with clickable hyperlinks.

WASM-ready
$ flutter pub add hyperlink
Source repository

What it does

HyperLink is a Flutter widget that automatically detects and renders clickable hyperlinks within text. It allows custom styling for both links and non-link text independently and handles launching URLs in the default browser when tapped.

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

Use it when

  • You need to render text containing markdown-style or standard links that users can tap to open in a browser.
  • You want separate styling for standard text and clickable links within the same text block.

Skip it when

  • You need a full-featured rich text or markdown rendering engine beyond basic hyperlinks.
  • You require complex gesture handling inside text other than opening URLs.

Strengths

  • Automatically detects and renders clickable hyperlinks in text.
  • Provides independent styling for hyperlinks and regular text.
  • Supports a wide range of standard text configuration parameters like max lines, alignment, and overflow.

Weaknesses

  • Limited to basic hyperlink rendering and URL launching.
  • No documentation on topics or advanced parsing beyond basic tags.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add the dependency to pubspec.yaml and import it.

HyperLink(
  textStyle: TextStyle(color: Colors.black, fontSize: 15),
  linkStyle: TextStyle(color: Colors.red, fontWeight: FontWeight.w700, fontSize: 20),
  text: 'Click here to visit [Google](https://www.google.com)',
  linkCallBack: (link) {},
)

Alternatives

Packages that do the same job and could replace hyperlink.

Works with

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