simple_url_preview_v2 4.0.0 simple_url_preview_v2: ^4.0.0 copied to clipboard
Flutter package to show url preview. Custamizable height, background and text styles, as well as lines.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add simple_url_preview_v2
With Flutter:
$ flutter pub add simple_url_preview_v2
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
simple_url_preview_v2: ^4.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:simple_url_preview_v2/simple_url_preview.dart';
import 'package:simple_url_preview_v2/widgets/preview_description.dart';
import 'package:simple_url_preview_v2/widgets/preview_image.dart';
import 'package:simple_url_preview_v2/widgets/preview_site_name.dart';
import 'package:simple_url_preview_v2/widgets/preview_title.dart';