An open API service indexing awesome lists of open source software.

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)

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)
```