windows_file_picker 1.2.0 copy "windows_file_picker: ^1.2.0" to clipboard
windows_file_picker: ^1.2.0 copied to clipboard

PlatformWindows

Windows implementation of the file_picker plugin using Win32 COM APIs for native file and directory picking.

1.2.0 #

Desktop (Windows)

  • Implemented PlatformFile.lengthSync(). The picker only returns a file path, not its size, so this returns null on Windows, use length() to actually read it from disk.

1.1.0 #

  • Migrated pickFile(), pickFiles(), and saveFile() from the legacy GetOpenFileNameW/GetSaveFileNameW common dialogs to the modern IFileOpenDialog/IFileSaveDialog COM APIs, the same pattern getDirectoryPath() already used. This is a prerequisite for supporting custom dialog button text and other Common Item Dialog features on those entry points. Fixes #2173.
  • Removed the internal Win32 helpers tied to the legacy dialogs (fileTypeToFileFilter, extractSelectedFilesFromOpenFileNameW, OPENFILENAMEW, GetOpenFileNameW, GetSaveFileNameW, and the ofn* constants). These were implementation details of the removed dialog code, not part of the supported plugin API.
  • Tightened the file_picker_platform_interface lower bound to ^3.2.0. This package's pickFile()/pickFiles() signatures reference DarwinOptions, added in that version, so resolving against an older one would fail to compile.

1.0.2 #

  • Fix saved files missing their extension when the user types a file name without one: set lpstrDefExt on OPENFILENAMEW so Windows appends the default extension (derived from the allowed extensions or the suggested file name). Fixes #2139.

1.0.1 #

  • Improved package description, added example, and added missing API documentation.

1.0.0 #

  • Initial release of Windows implementation package for file_picker.
0
likes
160
points
240k
downloads

Documentation

API reference

Publisher

verified publishervictorcarreras.dev

Weekly Downloads

Windows implementation of the file_picker plugin using Win32 COM APIs for native file and directory picking.

Repository (GitHub)
View/report issues
Contributing

Topics

#file-picker #windows

License

MIT (license)

Dependencies

cross_file, ffi, file_picker_platform_interface, flutter, meta, path, win32

More

Packages that depend on windows_file_picker

Packages that implement windows_file_picker