'How to use Flutter Desktop open windows explorer?

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



Solution 1:[1]

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

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

Solution 2:[2]

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\\');

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 smorgan
Solution 2 Islam Assem