This is a fork from a plug-in that can call native APP to open files with string result in flutter, support iOS(UTI) / android(intent) / PC(ffi) / web(dart:html)
Package selection guidance compiled from public package information, community data, and project usage.
better_open_file is a Flutter plugin fork that enables opening files using native system apps across multiple platforms. It supports iOS via UTI, Android via Intent, desktop via FFI, and web through dart:html. The package returns a string result indicating the outcome of the operation, making it ideal for handling file launches in cross-platform applications. Designed for simplicity and broad compatibility, it extends the functionality of the original plugin with improved reliability and platform-specific features.
Use cases
Opening PDFs and documents in native apps
Launching files from within Flutter apps
Integrating file previews across platforms
Handling file types with custom handlers
Supporting file operations on mobile and desktop
Key features
Cross-platform file launching
String result feedback
Support for iOS UTI and Android Intent
Desktop integration via FFI
Web compatibility using dart:html
Suitable for
Developers building file-heavy apps
Apps requiring native file handling
Cross-platform file viewers
Educational or document management tools
Projects targeting iOS, Android, and desktop
Considerations
Requires platform-specific configuration
Limited to supported file types
May need additional permissions on some platforms
Web support depends on browser capabilities
Desktop support requires proper FFI setup
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
better_open_file
NOTICE: This package is forked from here to remove a dangerous permission in android
What's was changed on this fork:
Updated to FFI 2.0.x
Removed android.permission.REQUEST_INSTALL_PACKAGES and android.permission.READ_EXTERNAL_STORAGE
Updated some Gradle configurations
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)
Usage
To use this plugin, add better_open_file as a dependency in your pubspec.yaml file.