halildurmus / filepicker_windows

File and directory picker for Windows that uses common dialog controls.
BSD 3-Clause "New" or "Revised" License
68 stars 19 forks source link

Select Folder #15

Closed iampopal closed 2 years ago

iampopal commented 3 years ago

This package works great for selecting files, can we have select Folder or select directory functionality.

whitemagehealing commented 2 years ago

This seems to already be possible (although you can only select ONE folder) in the API, but it's just not documented super well yet.

          final directory = DirectoryPicker().getDirectory();
          if (directory != null) {
            print(directory.path);
          }
iampopal commented 2 years ago

Thank you, file picker helped me too