thumbnailer 2.1.0 thumbnailer: ^2.1.0 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 Flutter:
$ flutter pub add thumbnailer
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
thumbnailer: ^2.1.0
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:thumbnailer/thumbnailer.dart';