Skip to content

Shonu72/universal_file_viewer

Repository files navigation

UniversalFileViewer - A Flutter package to preview various file types, including images, videos, PDFs, Word, Excel, CSV, and PowerPoint files on Android and iOS.

Features
✅ Image preview (JPG, PNG, GIF, BMP, TIFF) 
✅ Video playback (MP4, AVI, MOV, MKV)
✅ PDF viewer
✅ Word documents (.doc, .docx)
✅ Excel files (.xlsx)
✅ CSV file preview
✅ Text files (.txt, .md)
✅ PowerPoint files (.ppt, .pptx) - Upcoming
✅ Fallback to external app if unsupported

Installation

Add this package to your pubspec.yaml:

dependencies:
  universal_file_viewer: latest_version

Example
UniversalFileViewer(filePath: '/sample.pdf'),

Example Video

example.mp4

Future Enhancements

✅ More file format support
✅ Web support
✅ Better UI customization
✅ Encrypted file handling

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit issues and pull requests.

⭐ If you like this package, consider giving it a star on Github 🚀

Buy me a coffee🍵

About

A Flutter package to preview various file types, including images, videos, PDFs, Word, Excel, CSV, and PowerPoint files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •