Flutter plugin that opens a file in the device's native app
open sourceBSD-3-Clausefree
open_file is a Flutter plugin that opens a file with the platform's native app and returns a result string: DocumentInteraction on iOS, intents on Android, FFI on desktop and dart:html on the web. You can add custom file type mappings (extension to MIME type or UTI), and from version 3.3.0 opening an external file needs storage permission first.
Problems it solves
- open a downloaded PDF in the phone's viewer from Flutter
- launch the default app for a file in Flutter
- open a file with another app on Android and iOS from Flutter
Features
- open files in the native app on iOS, Android, desktop and web
- result string for success or failure
- custom extension-to-type mappings
Alternatives
The same job
These do what open_file does.
- flutter_local_notifications Cross-platform Flutter plugin for displaying and scheduling local notifications
- url_launcher Flutter plugin for opening URLs, phone numbers, SMS and email links
- file_picker Native file picker for Flutter apps
- share_plus Flutter plugin for sharing text, links and files through the platform share sheet
- path_provider Flutter plugin for finding commonly used locations on the device's file system
- Flutter Packages Flutter's first-party packages and plugins, maintained by the Flutter team
