flutter_link_previewer
Customizable link and URL preview extracted from the provided text with the ability to render from the cache. Ideal for chat applications.
4.2.0
70K downloads/mo
#1281 most downloaded on pub.dev
flyerhq/flutter_chat_ui
What this package is like to depend on
Last release 8 months ago
06 Dec 2025
Ships unpredictably
gaps range from 2 weeks to 2.0 years
Nearly every release is documented
notes for 59 of 59 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
59 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
59 releases · Feb 2021 to Dec 2025Releases
latest 59-
4.2.006 Dec 2025Release notes
Open source →Release notes
Open source →- FEAT : update deps - requires min dart 3.8 and flutter 3.32 ( #871 ). ( 588b34bd )
-
4.1.226 Jul 2025 -
4.1.119 Jul 2025Release notes
Open source →Release notes
Open source →-
FIX : update LICENSE. ( 209a1292 )
-
FIX : add example to the flutter_link_previewer. ( a307c9e9 )
-
-
4.1.019 Jul 2025 -
4.0.012 Jul 2025Release notes
Open source →-
BREAKING CHANGE: The LinkPreview widget has been completely rewritten for improved clarity and modern design.
- Separation of Concerns: The widget no longer manages or highlights links within parent text. It is now focused solely on rendering the link preview itself. This resolves previous design choices where the preview was coupled with unrelated text logic.
- Modernized Default Style: The default appearance has been updated to better match modern messenger apps, while retaining full customizability through parameters.
- Parameter Renames: To improve clarity and consistency, some parameters have been renamed:
onPreviewDataFetched→onLinkPreviewDataFetchedpreviewData→linkPreviewData
- API Changes: Most other parameters and internals have changed as part of the rewrite. Please review the updated source code to see the new customization options.
Release notes
Open source →BREAKING CHANGE : The LinkPreview widget has been completely rewritten for improved clarity and modern design.
-
Separation of Concerns : The widget no longer manages or highlights links within parent text. It is now focused solely on rendering the link preview itself. This resolves previous design choices where the preview was coupled with unrelated text logic.
-
Modernized Default Style : The default appearance has been updated to better match modern messenger apps, while retaining full customizability through parameters.
-
Parameter Renames : To improve clarity and consistency, some parameters have been renamed:
-
onPreviewDataFetched → onLinkPreviewDataFetched
-
previewData → linkPreviewData
-
API Changes : Most other parameters and internals have changed as part of the rewrite. Please review the updated source code to see the new customization options.
-
-
3.2.209 Jul 2023 -
3.2.116 May 2023Release notes
Open source →- Add
previewBuilderto allow you to create your own implementation of a link preview. Thanks @CatEatFishs for suggestion! - Fix numbers being parsed as urls. Thanks @claptv for noticing!
- Update dependencies. Requires Dart >= 2.19.0.
Release notes
Open source →-
Add previewBuilder to allow you to create your own implementation of a link preview. Thanks @CatEatFishs for suggestion!
-
Fix numbers being parsed as urls. Thanks @claptv for noticing!
-
Update dependencies. Requires Dart >= 2.19.0.
- Add
-
3.2.029 Oct 2022 -
3.1.002 Oct 2022Release notes
Open source →- Update to Flutter 3.3.3
- Set
WhatsApp/2as a default user agent to parse more links - Added
requestTimeoutparameter, that will cancel the request if timeout is reached. Defaults to 5 seconds.
Release notes
Open source →-
Update to Flutter 3.3.3
-
Set WhatsApp/2 as a default user agent to parse more links
-
Added requestTimeout parameter, that will cancel the request if timeout is reached. Defaults to 5 seconds.
-
3.0.119 Jun 2022 -
3.0.013 Jun 2022Release notes
Open source →- Update to Flutter 3
- Add
userAgentparameter. Thanks @felixgabler for the PR!
Release notes
Open source →-
Update to Flutter 3
-
Add userAgent parameter. Thanks @felixgabler for the PR!
-
2.6.611 Apr 2022 -
2.6.510 Apr 2022 -
2.6.403 Apr 2022 -
2.6.319 Feb 2022Release notes
Open source →- Fixed
looking up deactivated ancestor is unsafeerror. Thanks @felixgabler for the PR! - Add
openOnPreviewImageTapandopenOnPreviewTitleTap- allows to open link URL when tapped on the preview image and/or preview title/description. Thanks @felixgabler for the PR! - Update to Flutter 2.10.2. Requires Dart >= 2.16.0.
Release notes
Open source →-
Fixed looking up deactivated ancestor is unsafe error. Thanks @felixgabler for the PR!
-
Add openOnPreviewImageTap and openOnPreviewTitleTap - allows to open link URL when tapped on the preview image and/or preview title/description. Thanks @felixgabler for the PR!
-
Update to Flutter 2.10.2. Requires Dart >= 2.16.0.
- Fixed
-
2.6.215 Jan 2022Release notes
Open source →- Use utf8 codec to parse chinese symbols
- Update dependencies. Requires Dart >= 2.15.1.
-
2.6.110 Dec 2021 -
2.6.024 Oct 2021Release notes
Open source →⚠️ Breaking Changes ⚠️
onMessageTapandonMessageLongPressaddedBuildContextas a first parameter, so if you had something like this:void _handleMessageLongPress( Message message, { int? index, LongPressStartDetails? details, })
replace it with this:
void _handleMessageLongPress( BuildContext context, Message message, { int? index, LongPressStartDetails? details, })
- FIX: scrollToIndex does not work when starting with an empty list #793. (1948c1f5)
- FEAT: add sendButtonVisibilityMode and allowEmptyMessage to the composer. (7a496607)
- FEAT: add method OnMessageDoubleTapCallback; add param BuildContext context for OnMessageTapCallback and OnMessageLongPressCallback (#817). (6fe68886)
2.5.3
- FIX: update dependencies. (a8ff8b57)
2.5.2
- Update a dependency to the latest release.
2.5.1
- FIX: re-enable composer blur. (791f7308)
Release notes
Open source →- Updated dependencies (requires Dart >=2.14.0)
- Fixed Android example. Thanks @rvndsngwn for reporting!
-
2.5.210 Sep 2021 -
2.5.110 Sep 2021Release notes
Open source →Revert
metaupgrade, becausepub.devis analyzing code with an old Flutter versionRelease notes
Open source →Revert meta upgrade, because pub.dev is analyzing code with an old Flutter version
-
2.5.009 Sep 2021Release notes
Open source →- FIX: introduce status field back (#809). (1aadf874)
- FIX: prevent sending blank messages (#808). (6fbcfc73)
- FIX: perf improvements (#807). (71e6d690)
- FIX: allow to set a different color in Composer when not empty (#794). (788ca0c6)
- FEAT: time and status grouping same minute fix #764 (#792). (61c04002)
Release notes
Open source →- Update to Flutter 2.5
- Rename
REGEX_EMAILtoregexEmailandREGEX_LINKtoregexLink
Release notes
Open source →-
Update to Flutter 2.5
-
Rename REGEX_EMAIL to regexEmail and REGEX_LINK to regexLink
-
2.4.208 Sep 2021 -
2.4.131 Aug 2021 -
2.4.028 Aug 2021Release notes
Open source →⚠️ Breaking Changes ⚠️
All message builders will also provide
isSentByMeandgroupStatusnow. Just pass{ required bool isSentByMe, MessageGroupStatus? groupStatus, }after the index param. It is fine not to use these fields if not needed.
-
2.3.017 Aug 2021Release notes
Open source →2.3.0
⚠️ Breaking Changes ⚠️
-
Renamed LinkPreview → LinkPreviewData
-
LinkPreview.imageUrl→LinkPreviewData.image.url -
Both
LinkPreviewData.image.widthandLinkPreviewData.image.heightare now required
2.2.4
- FIX: add physics param to the ChatAnimatedList(Reversed). (ede3a170)
- FIX: emptyChatList not clickable (#787). (88937baa)
2.2.3
2.2.2
2.2.1
- FIX: list rebuilding when keyboard opens/closes. (48e28e7e)
-
-
2.2.322 Jul 2021 -
2.2.222 Jul 2021Release notes
Open source →- Fix completer that never completes and add
corsProxyparameter. Thanks @wer-mathurin for the PR! - Export
getPreviewDatato allow you to create your own implementation of a link preview.
Release notes
Open source →-
Fix completer that never completes and add corsProxy parameter. Thanks @wer-mathurin for the PR!
-
Export getPreviewData to allow you to create your own implementation of a link preview.
- Fix completer that never completes and add
-
2.2.113 Jul 2021 -
2.2.013 Jul 2021 -
2.1.012 Jun 2021 -
2.0.801 Jun 2021 -
2.0.720 May 2021 -
2.0.620 May 2021 -
2.0.520 May 2021 -
2.0.420 May 2021 -
2.0.320 May 2021 -
2.0.219 May 2021Release notes
Open source →- Fix paddings for an empty preview data
- Limit number of images parsed
- Fix regex
-
2.0.109 May 2021 -
2.0.005 May 2021Release notes
Open source →- BREAKING:
onPreviewDataFetchedandpreviewDataare now required. In the previous version, a link preview used on a ListView resulted in a fetch call every time the preview was appearing on a screen.
Release notes
Open source →- BREAKING : onPreviewDataFetched and previewData are now required. In the previous version, a link preview used on a ListView resulted in a fetch call every time the preview was appearing on a screen.
- BREAKING:
-
1.0.604 May 2021 -
1.0.501 May 2021 -
1.0.426 Mar 2021 -
1.0.322 Mar 2021 -
1.0.213 Mar 2021 -
1.0.107 Mar 2021 -
1.0.006 Mar 2021 -
0.2.206 Mar 2021 -
0.2.106 Mar 2021 -
0.2.005 Mar 2021 -
0.1.022 Feb 2021 -
0.0.912 Feb 2021 -
0.0.811 Feb 2021 -
0.0.709 Feb 2021 -
0.0.605 Feb 2021 -
0.0.505 Feb 2021 -
0.0.403 Feb 2021 -
0.0.302 Feb 2021 -
0.0.202 Feb 2021 -
0.0.101 Feb 2021Release notes
Open source →- Initial release
365
likes
150
points
67.7k
downloads
Documentation
API reference
Publisher
flyer.chat
Weekly Downloads
Metadata
Customizable link and URL preview extracted from the provided text with the ability to render from the cache. Ideal for chat applications.
Homepage
Repository (GitHub)
View/report issues
Contributing
License
MIT ( license )
Dependencies
flutter , flutter_chat_core , html , http , punycode , url_launcher
More
Packages that depend on flutter_link_previewer
← Metadata
365
likes
150
points
67.7k
downloads
Documentation
API reference
Publisher
flyer.chat
Weekly Downloads
Metadata
Customizable link and URL preview extracted from the provided text with the ability to render from the cache. Ideal for chat applications.
Homepage
Repository (GitHub)
View/report issues
Contributing
License
MIT ( license )
Dependencies
flutter , flutter_chat_core , html , http , punycode , url_launcher
More
Packages that depend on flutter_link_previewer
Back