omofolarin / thumbnailer

A Flutter 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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thumbnailer

pub package

A Flutter plugin that is able to generate thumbnails for images, pdf and xlsx files

  • if thumbnail generation is not supported for specific mime type, then a fallback icon from FontAwesome is returned
  • supports registering custom mime type handlers for dynamic extendability
  • resulting thumbnail (or fallback icon) is flutter widget
  • supports custom resizing/styling of the resulting thumbnail

Why

In time of creation of this plugin, there was no available solution on pub.dev

Usage

To use this plugin, add thumbnailer as a dependency in your pubspec.yaml file.

Example

Check the example tab here in pub.dev or example project on github

Contribution and Support

  • Contributions are welcome!
  • If you want to contribute code please create a PR
  • If you find a bug or want a feature, please fill an issue

About

A Flutter 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

License:MIT License


Languages

Language:JavaScript 93.3%Language:Dart 6.5%Language:HTML 0.2%Language:Swift 0.1%Language:Objective-C 0.0%