link_previewer 1.0.5 link_previewer: ^1.0.5 copied to clipboard
A new Flutter package. It is build for making link looks prettier than just inline link or default hyperlink.
link_previewer #
A new Flutter package. Build container with image, title, description from web-site (link) will be provided.
Getting Started #
Installing #
Use this package as a library
- Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
link_previewer: ^1.0.4
- Install it
You can install packages from the command line: with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
- Import it
Now in your Dart code, you can use:
import 'package:link_previewer/link_previewer.dart';
Usage #
Widget build() {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
LinkPreviewer(
link: "https://www.linkedin.com/feed/",
direction: ContentDirection.horizontal,
),
LinkPreviewer(
link: "https://www.linkedin.com/feed/",
direction: ContentDirection.vertical,
),
],
);
}