simple_link_preview 2.0.0 copy "simple_link_preview: ^2.0.0" to clipboard
simple_link_preview: ^2.0.0 copied to clipboard

Returns a simple metadata for generating a weblink preview by examining the html <meta> tags.

Free to get simple metadata for generating a weblink preview by examining the HTML tags.

Usage #

dependencies:
  simple_link_preview: ^2.0.0

A simple usage example:

import 'package:simple_link_preview/simple_link_preview.dart';

void main() async{
  var preview = await SimpleLinkPreview.getPreview('https://pub-web.flutter-io.cn');
  print('Link preview: $preview');
}

The preview form: #

{
"url": "https://pub-web.flutter-io.cn/",
"title": "Dart packages",
"image": "https://pub-web.flutter-io.cn/static/img/pub-dev-icon-cover-image.png?hash=vg86r2r3mbs62hiv4ldop0ife5um2g5g",
"description": "Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter, AngularDart, and general Dart programs."
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

12
likes
140
pub points
80%
popularity

Publisher

unverified uploader

Returns a simple metadata for generating a weblink preview by examining the html <meta> tags.

Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL-3.0 (LICENSE)

Dependencies

http, metadata_fetch_plus, universal_html

More

Packages that depend on simple_link_preview