Repository navigation
Update dependency file_picker to v13 - #211
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^11.0.0→^13.0.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
vicajilau/flutter_file_picker (file_picker)
v13.1.0Compare Source
v13.0.0Compare Source
General
PlatformFile.length()now returnsFuture<int?>instead ofFuture<int>, matchinglengthSync().nullmeans the length could not be determined (e.g. a failed disk read), distinct from a genuinely empty file, which still returns0. Previously both cases returned0, with no way to tell them apart. #2197allowMultipleandwithData/withReadStream/readSequentialonpickFiles(),lockParentWindowonpickFiles()/pickFile()/getDirectoryPath()/saveFile(),cancelUploadOnWindowBluronpickFiles()/pickFile(), andandroidSafOptionsonpickFiles()/pickFile()/getDirectoryPath(). UsepickFile()for single-file selection,PlatformFile.readAsBytes()/readAsByteStream()to read file data,WindowsOptions.lockParentWindow/LinuxOptions.lockParentWindow,WebOptions.cancelUploadOnWindowBlur, andandroidOptionsrespectively. #2202file_picker_platform_interface ^4.0.0,android_file_picker ^2.0.0,file_picker_darwin ^2.0.0,file_picker_linux ^2.0.0,windows_file_picker ^2.0.0, andfile_picker_web ^4.0.0.Web
FilePickerWebOptions.readSequentialhaving no effect (file_picker_web 4.0.0). #2206Android & iOS
withData(android_file_picker 2.0.0,file_picker_darwin 2.0.0). #2202v12.3.0Compare Source
Desktop (Windows)
WindowsOptions.acceptLabel, letting callers set the confirm ("OK") button text onpickFile(),pickFiles(),getDirectoryPath(), andsaveFile()dialogs. #1861macOS
DarwinOptions.acceptLabel, letting callers set the confirm button text forpickFile()/pickFiles()(NSOpenPanel.prompt). Has no effect on iOS. #1861v12.2.0Compare Source
General
PlatformFile.lengthSync(), replacing thesizeproperty removed in 12.0. It returns the length the native picker already reported, without any I/O, ornullwhen the platform did not report one, in which caselength()still reads it from disk. #2187PlatformFile.lengthSync()is abstract, so an implementation published before it does not satisfy the new interface, and leaving the old bounds would let pub resolve a combination that compiles nowhere.v12.1.3Compare Source
General
file_picker_platform_interface3.2.0. The facade already required^3.2.0for the interface itself, but still allowed implementations predating theDarwinOptionsparameter added there, so pub could legally resolve a combination that does not compile. #2186v12.1.2Compare Source
General
file_picker_darwindirectly from the facade package.skipEntitlementsChecks()now dispatches through the newFilePickerPlatform.skipEntitlementsChecks()hook instead of a type test onFilePickerPlatform.instance. That import pulleddart:iointofile_picker's import graph, making the package incompatible with wasm and breaking analysis when resolved against the lowest allowed dependency versions. No behavior change on any platform.iOS
darwinOptions(DarwinOptions) topickFile()/pickFiles(), letting callers setDarwinAssetRepresentationModeto request the photo library return media in itscurrentor acompatiblerepresentation instead of always transcoding to the system default (automatic). Restores a way to avoid expensive transcoding for large HEVC, HDR, or slow-motion videos, which existed before the Darwin implementation was rewritten. Non-automatic modes requirecompressionQuality: 0, mixing the two throws anArgumentError.v12.1.1Compare Source
macOS
FilePicker.skipEntitlementsChecks()being a permanent no-op. It now delegates toFilePickerDarwin.skipEntitlementsChecks()when running on macOS, so non-sandboxed apps can actually skip the App Sandbox entitlement checks again.v12.1.0Compare Source
General
PlatformFile.extension, restoring the pre-12.0 convenience getter that was dropped during the federated rewrite. Returns the file extension ofnamewithout the leading dot, ornullif there is none.iOS
FileSystemException/OSError: Is a directory) when picking a Live Photo from the gallery. Live Photos are saved by iOS as.pvtpackages (directories); the still image contained in the package is now extracted instead of returning the package itself.v12.0.0Compare Source
Breaking Changes
3.38/ Dart3.10.14.0. RemovedDKImagePickerController/DKPhotoGallerydependency chain.saveFile():fileNameandbytesare now required parameters across all platforms.FilePickerResult.pickFiles()now returnsFuture<List<PlatformFile>>directly (an empty list instead ofnull, no.files/.count/.isSinglePickwrapper), andpickFile()returnsFuture<PlatformFile?>for a single selection.pickFiles():allowMultiplenow defaults totrue. UsepickFile()for single file selection (allowMultipleis deprecated).withData,withReadStream, andreadSequentialonpickFiles()/pickFile()in favor ofPlatformFile.readAsBytes()andPlatformFile.readAsByteStream().lockParentWindowandcancelUploadOnWindowBlurparameters in favor of platform-specific option classes (WindowsOptions,LinuxOptions,WebOptions).Architecture
file_pickerinto a federated architecture with dedicated platform implementation packages (file_picker_platform_interface,android_file_picker,file_picker_darwin,file_picker_linux,windows_file_picker, andfile_picker_web).Features & Enhancements
pickFile()static method as a convenience wrapper for single file selection.WindowsOptions,LinuxOptions(withacceptLabelandparentWindow), andWebOptions.AndroidSAFOptions,AndroidSAFHandle,AndroidPlatformFile). Optimized image compression to preventOutOfMemoryError.IllegalCharacterInFileNameExceptioninfile_picker.dart.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.