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
Add this package to your pubspec.yaml:
dependencies:
universal_file_viewer: latest_version
Example
UniversalFileViewer(filePath: '/sample.pdf'),
example.mp4
✅ More file format support
✅ Web support
✅ Better UI customization
✅ Encrypted file handling
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Feel free to submit issues and pull requests.
⭐ If you like this package, consider giving it a star on Github 🚀