thumbnailer 2.0.2 thumbnailer: ^2.0.2 copied to clipboard
Plugin that is able to generate thumbnails from files with various mime types. If thumbnail generation is not support for specific mime type, then a fallback icon is returned
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add thumbnailer
With Flutter:
$ flutter pub add thumbnailer
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
thumbnailer: ^2.0.2
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:thumbnailer/thumbnailer.dart';