pdf_thumbnail 0.1.1+1 copy "pdf_thumbnail: ^0.1.1+1" to clipboard
pdf_thumbnail: ^0.1.1+1 copied to clipboard

Thumbnail viewer for PDF files. Supports Android and iOS. Simply add widget and give the file path.

Pdf Thumbnail #

style: very good analysis Powered by Mason License: MIT

Thumbnail viewer for pdfs

Installation πŸ’» #

❗ In order to start using Pdf Thumbnail you must have the Flutter SDK installed on your machine.

Add pdf_thumbnail to your pubspec.yaml:

dependencies:
  pdf_thumbnail:

Install it:

flutter packages get

Example ✍️ #

 return Stack(
              children: [
                SizedBox(
                  height: MediaQuery.of(context).size.height,
                  width: MediaQuery.of(context).size.width,
                  child: PdfViewer(
                    filePath: snapshot.data!.path,
                  ),
                ),
                if (showThumbnail)
                  Positioned(
                    bottom: 0,
                    width: MediaQuery.of(context).size.width,
                    // Here's the thumbnail widget.
                    child: PdfThumbnail.fromFile(snapshot.data!.path),
                  ),
              ],
            );

Demo

gif

Roadmap πŸ—ΊοΈ #

  • Customization for colors, decoration etc.
  • onTap callback and page number.
  • Different layouts and scroll axises.
  • Caching.
43
likes
0
pub points
91%
popularity

Publisher

verified publishermirkan.dev

Thumbnail viewer for PDF files. Supports Android and iOS. Simply add widget and give the file path.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, pdfx

More

Packages that depend on pdf_thumbnail