Search packages, repositories and app categories

GitHub repositoryDutchCodingCompany/file_preview

file_preview

DutchCodingCompany/file_preview open-source repository details.

file_preview project cover
Stars
3
Forks
22
Last push (UTC)
Aug 16, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

file_previewer

Can generate an preview image based on the file extension. Uses the native files previewer on iOS.

Getting Started

Generate a preview Widget by calling await FilePreview.getThumbnail(file.path).

  • An image file
  • A pdf file
  • A pdf file where a preview cannot be rendered

Usage

final File file = await FilePicker.getFile();
try {
    final thumbnail = await FilePreview.getThumbnail(file.path);
    setState(() {
        image = thumbnail;
    });
} catch (e) {
    image = Image.asset("");
}
Dutch Coding Company GitHub avatar
GitHub author

Dutch Coding Company ↗

Eindhoven, NetherlandsOfficial website ↗
LanguagesDartSwiftRubyKotlinObjective-C

Dependencies used

Dependency list 5 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗