universal_file_viewer 0.1.3 copy "universal_file_viewer: ^0.1.3" to clipboard
universal_file_viewer: ^0.1.3 copied to clipboard

A Flutter package to preview local and remote files with inline viewers and external fallback.

UniversalFileViewer is a Flutter package to preview common file types from local files and remote URLs.

Features #

  • Inline image preview: .jpg, .jpeg, .png, .gif, .bmp, .tiff
  • Inline video playback: .mp4, .avi, .mov, .mkv
  • Inline PDF preview: .pdf
  • Inline Word preview: .docx
  • Inline spreadsheet preview: .xls, .xlsx, .csv
  • Inline text preview: .txt, .md
  • PowerPoint detection: .ppt, .pptx (opens externally)
  • Remote URL support: http:// / https:// files are downloaded to temp storage
  • External app fallback for unsupported types

Installation #

Add this package to your pubspec.yaml:

dependencies:
  universal_file_viewer: latest_version

Usage #

Local file:

UniversalFileViewer(
  file: File('/path/to/sample.pdf'),
)

Remote file:

UniversalFileViewer.remote(
  fileUrl: 'https://example.com/sample.pdf',
)

Notes #

  • .doc (legacy binary Word format) is detected but opened via external app fallback.
  • .ppt/.pptx currently use external app fallback (inline preview not yet implemented).

License #

This project is licensed under the MIT License. See LICENSE for details.

39
likes
150
points
532
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to preview local and remote files with inline viewers and external fallback.

Homepage
Repository (GitHub)
View/report issues

Topics

#filepreviewer #widget #package

Documentation

API reference

License

MIT (license)

Dependencies

archive, docx_file_viewer, excel, flutter, http, markdown, open_file, path, path_provider, pdfrx, shimmer, video_player, webview_flutter, webview_flutter_web, xml

More

Packages that depend on universal_file_viewer