NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1884 most downloaded on pub.dev
Dart package that helps with preview of any links. Fully customizable and has the ability to render from cached data. Useful for apps where we had chat feature.
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 21 of 21 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
23 releases · first in 2020
🛠 Improved Error Handling: The parser loop now gracefully continues on errors instead of breaking.
🛠 Improved Error Handling:
The parser loop now gracefully continues on errors instead of breaking.
🌐 Custom User-Agent Support:
Pass a custom UserAgent as props to tailor link previews to your needs.
📺 New Helpers:
Added YouTube video and redirection helpers for smoother handling of specific links.
🚀 Enhanced Metadata Fetching:
The getMetadata() function now supports a userAgent option for more flexible metadata retrieval.
SVG Icon Support: AnyLinkPreview now seamlessly handles SVG images returned in metadata, enhancing support for various image formats.
New Features:
siteName: We've introduced a siteName property to our metadata fetch method, allowing for richer data extraction and display.Improvements:
itemBuilder Callback: The itemBuilder property has been expanded to return an SvgPicture widget when metadata includes an SVG image. This ensures correct rendering of SVGs alongside standard image formats.errorWidget (if provided) or a default error view. This update ensures a smoother user experience by providing informative feedback in cases of incomplete metadata.301, 302, 303, 307, 308. This enhancement ensures more reliable URL preview generation across a wider range of web links.One column per quarter.
Packages updated to support latest version.
User Agent causing the redirection URLs, Server side rendered meta-tag URLs fail from getting results. Now, we are taking User Agent from server if av
www. we are removing the same before fetching the results. However, we suggest to check for link validity with the helper method provided before fetching results from the library.Packages upgraded to support latest version of flutter SDK.
Deprecated methods / functions are removed
uiDirection to UIDirection as per flutter lints package suggestions.key issue in Validation of link is resolved now. Know more about it <a href="https://github.com/sur950/any_link_preview/issues/29">here</a>Now one can also add custom headers to the preview requests
errorWidget by default.Renamed UIDirection to uiDirection, UIDirectionHorizontal to uiDirectionHorizontal and UIDirectionVertical to uiDirectionVertical as per lint suggesti
UIDirection to uiDirection, UIDirectionHorizontal to uiDirectionHorizontal and UIDirectionVertical to uiDirectionVertical as per lint suggestions.FIX: Twitter link preview . Twitter uses client-side-rendering (CSR) to generate HTML in the browser
<meta> tags). This enables crawlers to not have to emulate JavaScript to view the page, and only crawl raw HTML content. Twitter recognizes crawlers based on the supplied User-Agent HTTP Header. Server-side-rendering is generally a more expensive operation than offloading the HTML rendering onto the client, which may be a reason why Twitter opts for client-side-rendering as the default behavior.Proxy URL added for CORS issue on the web. One can pass empty if they don't get any CORS issue while running on web platform.
onTap action on the card by passing empty function onTap: (){}AnyLinkPreview.getMetadata(link: "https://google.com/") which returns data of type MetadataAnyLinkPreview.isValidLink("https://google.com/") which returns a boolean. true if Valid, false if Invalid.- Multiline JSON support added - Base64 image support is added
Now the plugin will work for most of the links (Even for dynamic links)
- Minor improvements
- Migrated to null safety
borderRadius giving it zero has some issue which is fixed
borderRadius giving it zero has some issue which is fixedremoveElevation new param added- Flutter V2 support upgradation
Border Radius, Color, Box shadow, are now customizable.
Border Radius, Color, Box shadow, are now customizable.Twitter posts are private, so added default twitter image for the same
- Adjustment of UI
Added the list of apps that are already using this package
- Images added to readme file
Package is linked to the git repo & homepage url is updated
Parse your web URL's & show preview with in your application
Your coding agent can read these notes before it upgrades. Set up the MCP server →