I want to open the windows explorer application, not open a dialog. for example, the Edge's display in a folder.
Asked
Active
Viewed 2,794 times
5
2 Answers
5
You can pass file:
URLs for a directory to url_launcher
. For instance:
launch('file://C:');

smorgan
- 20,228
- 3
- 47
- 55
-
1Deprecated! now you should use: final Uri _url = Uri.parse('file:///C:/'); launchUrl(_url); – inselberg Sep 09 '22 at 16:44
1
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\\');

Islam Assem
- 1,376
- 13
- 21
-
Thank you for your answer, But this is what I wanted https://user-images.githubusercontent.com/58471330/158991839-8404dd3c-542d-4708-a122-9266061b491f.png – ilgnefz Mar 18 '22 at 13:18