flutter_link_previewer
4.2.1, released 2 months ago by flyer.chat
Customizable Flutter widget to fetch and render URL link previews.
What it does
Extracts the first URL from given text, automatically fetches metadata such as title, description, and image, and displays it in a clean animated card. It supports rendering from cache and international domains.
AI-written summary of version 4.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building chat applications that need URL preview cards
- Displaying rich metadata cards for shared links
Skip it when
- You only need to open links in a browser without preview UI
- You need complex web-scraping features outside standard link metadata
Strengths
- Automatic preview generation and smart image layout
- Supports international domains and custom tap handling
- Includes cache support to avoid redundant network requests
Weaknesses
- Limited to rendering previews for the first URL found in text
- Relies on network requests to fetch metadata from external sites
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
not documented
LinkPreview(
text: widget.message,
linkPreviewData: _linkPreviewData,
onLinkPreviewDataFetched: (data) {
setState(() {
_linkPreviewData = data;
});
},
)Alternatives
Packages that do the same job and could replace flutter_link_previewer.
- gpt_markdown
Powerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.
94Compare - any_link_preview
A Flutter widget that fetches and displays web link previews with customization and caching.
65Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - smart_text_flutter
Detects and highlights links in text using platform native APIs.
69Compare
Works with
Packages commonly used together with flutter_link_previewer: ones it builds on, ones built on it, and its own family.
- htmlflutter_link_previewer depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- url_launcherflutter_link_previewer depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- material_uiflutter_link_previewer depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- flutter_chat_coreflutter_link_previewer depends on itCore data models, controllers, and utilities for the Flyer Chat ecosystem.
- flutter_chat_uiSame familyA customizable, cross‑platform chat UI widget set for Flutter.
- flyer_chat_image_messageSame familyImage message widget for Flutter chat apps with cross-platform caching, BlurHash, and ThumbHash.