simple_url_preview 0.1.0 copy "simple_url_preview: ^0.1.0" to clipboard
simple_url_preview: ^0.1.0 copied to clipboard

outdated

Flutter package to show url preview

simple_url_preview #

Flutter package to show url preview

In Action

Getting Started #

This shows url preview of a URL.

Currently only supports Open Graph Protocol

How to use ? #

Add simple_url_preview to pubspec.yaml, and hit command 'flutter pub get'

dependencies:
  ...
  simple_url_preview: ^0.1.0

1) Simple use:

SimpleUrlPreview(
  url: 'https://pub.dev/',
),

2) Override preview height.(Default and minimum possible height is 150):

SimpleUrlPreview(
  url: 'https://pub.dev/',
  previewHeight: 200,
),

3) Override text color and background color:

SimpleUrlPreview(
  url: 'https://pub.dev/',
  textColor: Colors.white,
  bgColor: Colors.red,
),

4) If you want closable preview (Click on x to close the preview.):

SimpleUrlPreview(
  url: 'https://pub.dev/',
  isClosable: true,
),

Contribution: #

Would ❤️ to see any contributions.

Appreciate: #

If you liked my work, show some ❤️ by ⭐ repo.

Also you can appreciate by

Buy Me A Coffee PayPal Logo

75
likes
0
pub points
85%
popularity

Publisher

unverified uploader

Flutter package to show url preview

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, html, http, string_validator, url_launcher

More

Packages that depend on simple_url_preview