https://github.com/skalio/native-file-explorer-launcher
A flutter plugin to launch the native file explorer or get list of supported applications for a file ('Open with' feature)
https://github.com/skalio/native-file-explorer-launcher
file-explorer flutter openwith plugin
Last synced: about 1 month ago
JSON representation
A flutter plugin to launch the native file explorer or get list of supported applications for a file ('Open with' feature)
- Host: GitHub
- URL: https://github.com/skalio/native-file-explorer-launcher
- Owner: skalio
- License: mit
- Created: 2022-09-08T07:31:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T09:20:01.000Z (over 3 years ago)
- Last Synced: 2025-11-22T08:02:32.613Z (7 months ago)
- Topics: file-explorer, flutter, openwith, plugin
- Language: C++
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# native_file_explorer_launcher
A flutter plugin to launch the native file explorer/a file or get a list of supported applications for a desired file.
| Supported Platforms | |
|---------|------------|
| Windows | ✅ |
| macOS | ✅ |
## Usage
To use this plugin, add `native_file_explorer_launcher` as a dependency in your pubspec.yaml file.
```dart
// launches the native file explorer, i.e. `Finder`for macOS and `Explorer` for Windows and selects the file
bool isSuccessful = await NativeFileExplorerLauncher.showFileInNativeFileExplorer(filePath)
// launches the file using the default application
bool isSuccessful = await NativeFileExplorerLauncher.launchFile(filePath)
// launches the file using the passed application handler
bool isSuccessful = await NativeFileExplorerLauncher.launchFile(filePath, applicationHandler)
// get a list of supported applications for the desired file, including the name, url and the icon data of every application. If no application is found, it returns an empty list
List = await NativeFileExplorerLauncher.getSupportedApplications(String filePath)
```