Skip to content

alfredjingle/url_preview_card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_url_preview

Flutter package to show url preview

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: ^1.0.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

About

Url preview card package for flutter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 45.4%
  • Dart 36.7%
  • Ruby 8.7%
  • C 3.9%
  • Batchfile 3.8%
  • Swift 1.1%
  • Other 0.4%