hyperlink
0.0.5, released 3 years ago by an unverified publisher
A Flutter package for rendering text with clickable hyperlinks.
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.
- flutter_md
Fast Markdown parser and canvas renderer for Flutter with text selection and streaming.
82Compare - vyuh_diagram_flutter
Flutter canvas for diagrams with pan, zoom, selection and theming
79Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - flutter_linkify
Turns text URLs and emails into clickable inline links in Flutter.
50Compare
Works with
Packages commonly used together with hyperlink: ones it builds on, ones built on it, and its own family.