Package selection guidance compiled from public package information, community data, and project usage.
open_file_safe is a Flutter plugin that safely opens files using native system capabilities across multiple platforms. It leverages platform-specific mechanisms—UTI on iOS, Intents on Android, FFI on PC, and dart:html on web—to ensure reliable file opening with consistent string-based results. Designed for cross-platform compatibility, it simplifies file handling in Flutter apps by abstracting native integration details. The package supports secure and seamless file launches without requiring deep platform knowledge.
Use cases
Opening PDFs, images, and documents from app storage
Launching external apps to view or edit files
Integrating file previews in document management apps
Supporting file sharing between apps
Enabling offline file access in mobile and desktop apps
Educational or productivity apps with file support
Teams prioritizing platform-native behavior
Considerations
Requires proper file path permissions on Android and iOS
Web support depends on browser security policies
PC support needs FFI setup and native dependencies
Not suitable for opening files outside app sandbox without user consent
Limited control over native app selection on some platforms
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
open_file_safe
A plug-in that can call native APP to open files with string result in flutter, support iOS(DocumentInteraction) / android(intent) / PC(ffi) / web(dart:html)
Note:
This package is same as open_file, but .apk file type is not supported. Thus, android.permission.REQUEST_INSTALL_PACKAGES permission is removed.
Usage
To use this plugin, add open_file_safe as a dependency in your pubspec.yaml file.