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

https://github.com/huynguyennovem/open_dir

Flutter plugin for opening native directory on desktop platforms.
https://github.com/huynguyennovem/open_dir

dart desktop-environment flutter flutter-plugin linux macos windows

Last synced: 2 months ago
JSON representation

Flutter plugin for opening native directory on desktop platforms.

Awesome Lists containing this project

README

        

## open_dir

Open directory on the native desktop platform with its app (Finder on MacOS, Files on Linux, File Explorer on Windows)

[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/blueaquilae.svg?style=social&label=Follow%20HuyNguyenTw)](https://twitter.com/HuyNguyenTw)

### Supported platforms

MacOS | Linux | Windows | Android | iOS | Web |
| :-: | :---: | :-----: | :-----: | :-----: | :-----: |
| ✔️ | ✔️ | ✔️ | ❌️️ | ❌️️ | ❌️️ |

### Usage

Add `open_dir` as a dependency in your `pubspec.yaml` file. This is [Endorsed federated plugin](https://docs.flutter.dev/development/packages-and-plugins/developing-packages#endorsed-federated-plugin).

This plugin is also supported to highlight/select a specific file after opening the directory.

### Example

```dart
final _openDirPlugin = OpenDir();
final path = '/path/to/directory';
final highlightedFileName = 'file.txt';
await _openDirPlugin.openNativeDir(path: path, highlightedFileName: highlightedFileName);
```

### Demo

| Open dir | Open dir and highlight file |
| --------------- | --------------- |
|