Giter Site home page Giter Site logo

vamondragon / flutter-simple-url-preview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amitbhave/flutter-simple-url-preview

0.0 1.0 0.0 299 KB

Simple url preview package for flutter

Home Page: https://pub.dev/packages/simple_url_preview

License: MIT License

Kotlin 0.37% Swift 1.21% Objective-C 0.11% Dart 38.27% C++ 51.37% C 4.40% Batchfile 4.26%

flutter-simple-url-preview's Introduction

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

Please use latest version of the package.

How to use ?

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

dependencies:
  ...
  simple_url_preview: ^0.1.10

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:

Default textColor = Theme.of(context).accentColor

Default bgColor = Theme.of(context).primaryColor

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,
),

5) Override image loader color and title and description lines:

Default and maximum title lines = 2 and description lines = 3.

SimpleUrlPreview(
  url: 'https://pub.dev/',
  titleLines: 1,
  descriptionLines: 2,
  imageLoaderColor: Colors.white,
),

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

flutter-simple-url-preview's People

Contributors

amitbhave avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.