any_link_preview 2.0.9 copy "any_link_preview: ^2.0.9" to clipboard
any_link_preview: ^2.0.9 copied to clipboard

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.

2.0.9 #

  • Packages upgraded to support latest version of flutter SDK.
  • Now one can provide the height of the Preview Card as per their requirement.
  • Builder function is added. Thanks to the conributor Maël

2.0.8 #

  • Deprecated methods / functions are removed
  • Renamed uiDirection to UIDirection as per flutter lints package suggestions.
  • key issue in Validation of link is resolved now. Know more about it here
  • Migration to Flutter Embedding & URL Launch customizations were added. Thanks to the conributor OmarYehiaDev

2.0.7 #

  • Now one can also add custom headers to the preview requests
  • For any sort of errors, it shows the errorWidget by default.

2.0.6 #

  • Renamed UIDirection to uiDirection, UIDirectionHorizontal to uiDirectionHorizontal and UIDirectionVertical to uiDirectionVertical as per lint suggestions.
  • Refactored codebase according to the suggestions from official Dart linter package (package:lints)

2.0.5 #

  • FIX: Twitter link preview. Twitter uses client-side-rendering (CSR) to generate HTML in the browser
    • Viewing the source directly will not show any of the relevant tags or actual page HTML content, because it is all dynamically generated on the client's browser in React using JavaScript (i.e. CSR: Client-side rendering). In fact, the HTML source will have a stub containing "We've detected that JavaScript is disabled in your browser. Would you like to proceed to legacy Twitter?". This can be verified by opening up developer tools and peeking at the "Elements" tab during page load/render or downloading the page without JavaScript emulation
    • However, to improve Search Engine Optimization (SEO) for various prominent web-crawlers, Twitter will instead return server-side-rendered (SSR) HTML content (which does contain the <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.

2.0.4 #

  • 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.
  • Now one can disable the onTap action on the card by passing empty function onTap: (){}
  • If you want to build your own UI & need just the meta data (with or without cache), then you can call the method AnyLinkPreview.getMetadata(link: "https://google.com/") which returns data of type Metadata
  • One can check if the URL is valid or not by calling AnyLinkPreview.isValidLink("https://google.com/") which returns a boolean. true if Valid, false if Invalid.

2.0.3 #

  • Multiline JSON support added
  • Base64 image support is added

2.0.2 #

  • 🎉 Web support added
  • Now the plugin will work for most of the links (Even for dynamic links)
  • Few minor bugs are closed from Github issues

2.0.1-rc #

  • Minor improvements

2.0.0-rc #

  • Migrated to null safety

1.0.8 #

  • borderRadius giving it zero has some issue which is fixed
  • removeElevation new param added

1.0.7 #

  • Flutter V2 support upgradation

1.0.6 #

  • Border Radius, Color, Box shadow, are now customizable.

1.0.5 #

  • Twitter posts are private, so added default twitter image for the same

1.0.4 #

  • Adjustment of UI

1.0.3 #

  • Added the list of apps that are already using this package

1.0.2 #

  • Images added to readme file

1.0.1 #

  • Package is linked to the git repo & homepage url is updated

1.0.0 #

  • Parse your web URL's & show preview with in your application
410
likes
130
pub points
98%
popularity

Publisher

verified publishersuresh-konakanchi.in

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.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, html, http, shared_preferences, string_validator, url_launcher

More

Packages that depend on any_link_preview