A Flutter package to open the system's file manager and highlight a specific file or directory.
Supports Windows and macOS. Contributions are welcome to expand support to other platforms.
- Open the native file manager (e.g., Finder on macOS, Explorer on Windows)
- Highlight a specific file or open a directory
- Simple and intuitive API
- Windows: ✅ Supported
- macOS: ✅ Supported
- Linux: 🔧 In progress / Community contributions welcome
- Android: 🔧 In progress / Community contributions welcome
- iOS: 🔧 In progress / Community contributions welcome
Add the dependency using one of the following methods:
Option 1: Add manually to pubspec.yaml
show_in_file_manager: ^<latest_version>
Then run:
flutter pub get
Option 2: Use the Flutter CLI
flutter pub add show_in_file_manager
void main() async {
const filePath = '/Users/yourname/Documents/example.txt';
await showInFileManager(filePath);
}
Currently supports Windows and macOS.
If you're interested in adding support for Linux, Android, or iOS, please open a pull request or issue—contributions are very welcome!