How to use Flutter Desktop open windows explorer?

Viewed 954

I want to open the windows explorer application, not open a dialog. for example, the Edge's display in a folder. enter image description here

2 Answers

You can pass file: URLs for a directory to url_launcher. For instance:

launch('file://C:');

There is a plugin open_file: open_file: ^3.2.1

import 'package:open_file/open_file.dart';
import 'package:path_provider/path_provider.dart';
await OpenFile.open('$dir\\');
Related