Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

Fixes the example app to work on iOS; unlike the other platforms, iOS doesn't support extensions, so uniformTypeIdentifiers must also be set. This should have been done when we endorsed the iOS implementation package, but I forgot.

Fixes flutter/flutter#175381

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Fixes the example app to work on iOS; unlike the other platforms, iOS
doesn't support `extensions`, so `uniformTypeIdentifiers` must also be
set. This should have been done when we endorsed the iOS implementation
package, but I forgot.

Fixes flutter/flutter#175381
@flutter-dashboard
Copy link

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.

Copy link

@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 fixes the example application for the file_selector package on iOS by adding the required uniformTypeIdentifiers to XTypeGroup instances. The changes correctly update the example code and the README to ensure file selection works as expected on iOS. I have one suggestion to improve the filtering precision for text files in one of the examples.

@stuartmorgan-g
Copy link
Collaborator Author

test-exempt: Because this involves native UI, it would require an XCUITest, which we only run in the packages that actually directly contain native code (both for CI efficiency and because they would be fragile to changes in the implementation of the platform package).

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 16, 2025
@auto-submit auto-submit bot merged commit 0255ac9 into flutter:main Sep 16, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 16, 2025
Jaineel-Mamtora pushed a commit to Jaineel-Mamtora/flutter_forked that referenced this pull request Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: file_selector

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[file_selector] Example app not working on iOS

2 participants