5

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

Dave
  • 3,073
  • 7
  • 20
  • 33
ilgnefz
  • 55
  • 1
  • 4

2 Answers2

5

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

launch('file://C:');
smorgan
  • 20,228
  • 3
  • 47
  • 55
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