windows_file_picker 1.2.0
windows_file_picker: ^1.2.0 copied to clipboard
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 returnsnullon Windows, uselength()to actually read it from disk.
1.1.0 #
- Migrated
pickFile(),pickFiles(), andsaveFile()from the legacyGetOpenFileNameW/GetSaveFileNameWcommon dialogs to the modernIFileOpenDialog/IFileSaveDialogCOM APIs, the same patterngetDirectoryPath()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 theofn*constants). These were implementation details of the removed dialog code, not part of the supported plugin API. - Tightened the
file_picker_platform_interfacelower bound to^3.2.0. This package'spickFile()/pickFiles()signatures referenceDarwinOptions, 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
lpstrDefExtonOPENFILENAMEWso 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.