Skip to content

[file_selector] Update Windows example for deprecations#11570

Open
stuartmorgan-g wants to merge 1 commit intoflutter:mainfrom
stuartmorgan-g:file-selector-windows-deprecations
Open

[file_selector] Update Windows example for deprecations#11570
stuartmorgan-g wants to merge 1 commit intoflutter:mainfrom
stuartmorgan-g:file-selector-windows-deprecations

Conversation

@stuartmorgan-g
Copy link
Copy Markdown
Collaborator

@stuartmorgan-g stuartmorgan-g commented Apr 23, 2026

The file_selector_windows example was using some methods that have been deprecated in favor of param-object versions. This updates to use those new versions.

The `file_selector_windows example was using some methods that have been
deprecated in favor of param-object versions. This updates to use those
new versions.
@stuartmorgan-g stuartmorgan-g added the override: no changelog needed Override the check requiring CHANGELOG updates for most changes label Apr 23, 2026
@flutter-dashboard
Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@stuartmorgan-g
Copy link
Copy Markdown
Collaborator Author

text-exempt: refactor with no semantic change

@stuartmorgan-g
Copy link
Copy Markdown
Collaborator Author

I'm not sure how I missed this when I made the same fix to the Linux version back in #10542

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the file_selector_windows example to use the getDirectoryPathWithOptions and getDirectoryPathsWithOptions methods, replacing the previous getDirectoryPath and getDirectoryPaths calls. The file_selector_platform_interface dependency in the example's pubspec.yaml is also updated to version ^2.7.0. I have no feedback to provide.

@stuartmorgan-g stuartmorgan-g added the CICD Run CI/CD label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes p: file_selector platform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant