Skip to content
pubscout

thumbnailer

3.3.0, released 6 months ago by 4q.eu

Generate and display thumbnails for images, PDFs, and spreadsheets as Flutter widgets.

WASM-ready
$ flutter pub add thumbnailer
Source repository

What it does

A Flutter plugin that generates thumbnails from files with various mime types. If thumbnail generation is not supported for a specific mime type, it returns a fallback icon from FontAwesome. It also supports custom mime type handlers and custom resizing or styling.

AI-written summary of version 3.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display file previews or thumbnails for images, PDFs, or xlsx files.
  • You want a fallback icon widget for unsupported file types automatically.
  • You need to customize the sizing and styling of generated file thumbnails.

Skip it when

  • You need a comprehensive image picker solution.
  • You are only looking to compress standard images without rendering file type icons.

Strengths

  • Supports multiple file types including images, PDFs, and spreadsheets.
  • Provides fallback icons for unsupported MIME types out of the box.
  • Allows registering custom MIME type handlers for dynamic extendability.

Weaknesses

  • Limited to specific file formats like images, PDFs, and spreadsheets.
  • Relies on external packages for parsing formats like PDF and tables.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

not documented

Alternatives

Packages that do the same job and could replace thumbnailer.

  • barcode_image

    Generates barcodes as image files using the Dart image library.

  • universal_image

    Unified widget to display any image source (asset, network, file, SVG, base64, bytes, icon) across platforms.

Works with

Packages commonly used together with thumbnailer: ones it builds on, ones built on it, and its own family.