[file_selector] Remove unused web code#10376
Merged
auto-submit[bot] merged 2 commits intoflutter:mainfrom Nov 10, 2025
Merged
Conversation
The `web_helpers.dart` file was a helper for an inlined version of cross_file that was originally part of this package. When the inline version was replaced with an import of `cross_file`, when that was split into its own package, this file wasn't cleaned up, so it was dead code.
Collaborator
Author
|
CHANGELOG/version override: since this is removing non-exported code that nothing was importing internally, it's a no-op. |
There was a problem hiding this comment.
Code Review
This pull request removes the file packages/file_selector/file_selector_platform_interface/lib/src/web_helpers/web_helpers.dart. This file contained web-specific helper functions (createAnchorElement, addElementToContainerAndClick, ensureInitialized) that are no longer used. This change correctly removes dead code, resulting in a cleaner codebase.
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Nov 11, 2025
github-merge-queue bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Nov 11, 2025
flutter/packages@4cec230...7063d75 2025-11-11 [email protected] [video_player_avfoundation] removes unnecessary duration and size check before sending the initialized event (flutter/packages#9534) 2025-11-11 [email protected] Update Android package CODEOWNERS (flutter/packages#10386) 2025-11-11 [email protected] [url_launcher] Remove unused dartHostTestHandler (flutter/packages#10324) 2025-11-11 [email protected] [path_provider] Remove use of Pigeon's Dart test generator (flutter/packages#10323) 2025-11-11 [email protected] [image_picker] Remove use of Pigeon's Dart test generator (flutter/packages#10320) 2025-11-11 [email protected] [shared_preferences] Remove use of Pigeon's Dart test generator (flutter/packages#10325) 2025-11-10 [email protected] [camera_android_camerax] Fixes crash with unsupported operation exception (flutter/packages#10342) 2025-11-10 [email protected] [file_selector] Remove unused web code (flutter/packages#10376) 2025-11-10 [email protected] Manual roll Flutter from c5e809a to 31a8481 (9 revisions) (flutter/packages#10392) 2025-11-10 [email protected] [file_selector] Add canCreateDirectories to FileDialogOptions (flutter/packages#10317) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
IvoneDjaja
pushed a commit
to IvoneDjaja/flutter
that referenced
this pull request
Nov 22, 2025
flutter/packages@4cec230...7063d75 2025-11-11 [email protected] [video_player_avfoundation] removes unnecessary duration and size check before sending the initialized event (flutter/packages#9534) 2025-11-11 [email protected] Update Android package CODEOWNERS (flutter/packages#10386) 2025-11-11 [email protected] [url_launcher] Remove unused dartHostTestHandler (flutter/packages#10324) 2025-11-11 [email protected] [path_provider] Remove use of Pigeon's Dart test generator (flutter/packages#10323) 2025-11-11 [email protected] [image_picker] Remove use of Pigeon's Dart test generator (flutter/packages#10320) 2025-11-11 [email protected] [shared_preferences] Remove use of Pigeon's Dart test generator (flutter/packages#10325) 2025-11-10 [email protected] [camera_android_camerax] Fixes crash with unsupported operation exception (flutter/packages#10342) 2025-11-10 [email protected] [file_selector] Remove unused web code (flutter/packages#10376) 2025-11-10 [email protected] Manual roll Flutter from c5e809a to 31a8481 (9 revisions) (flutter/packages#10392) 2025-11-10 [email protected] [file_selector] Add canCreateDirectories to FileDialogOptions (flutter/packages#10317) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
mboetger
pushed a commit
to mboetger/flutter
that referenced
this pull request
Dec 2, 2025
flutter/packages@4cec230...7063d75 2025-11-11 [email protected] [video_player_avfoundation] removes unnecessary duration and size check before sending the initialized event (flutter/packages#9534) 2025-11-11 [email protected] Update Android package CODEOWNERS (flutter/packages#10386) 2025-11-11 [email protected] [url_launcher] Remove unused dartHostTestHandler (flutter/packages#10324) 2025-11-11 [email protected] [path_provider] Remove use of Pigeon's Dart test generator (flutter/packages#10323) 2025-11-11 [email protected] [image_picker] Remove use of Pigeon's Dart test generator (flutter/packages#10320) 2025-11-11 [email protected] [shared_preferences] Remove use of Pigeon's Dart test generator (flutter/packages#10325) 2025-11-10 [email protected] [camera_android_camerax] Fixes crash with unsupported operation exception (flutter/packages#10342) 2025-11-10 [email protected] [file_selector] Remove unused web code (flutter/packages#10376) 2025-11-10 [email protected] Manual roll Flutter from c5e809a to 31a8481 (9 revisions) (flutter/packages#10392) 2025-11-10 [email protected] [file_selector] Add canCreateDirectories to FileDialogOptions (flutter/packages#10317) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
reidbaker
pushed a commit
to AbdeMohlbi/flutter
that referenced
this pull request
Dec 10, 2025
flutter/packages@4cec230...7063d75 2025-11-11 [email protected] [video_player_avfoundation] removes unnecessary duration and size check before sending the initialized event (flutter/packages#9534) 2025-11-11 [email protected] Update Android package CODEOWNERS (flutter/packages#10386) 2025-11-11 [email protected] [url_launcher] Remove unused dartHostTestHandler (flutter/packages#10324) 2025-11-11 [email protected] [path_provider] Remove use of Pigeon's Dart test generator (flutter/packages#10323) 2025-11-11 [email protected] [image_picker] Remove use of Pigeon's Dart test generator (flutter/packages#10320) 2025-11-11 [email protected] [shared_preferences] Remove use of Pigeon's Dart test generator (flutter/packages#10325) 2025-11-10 [email protected] [camera_android_camerax] Fixes crash with unsupported operation exception (flutter/packages#10342) 2025-11-10 [email protected] [file_selector] Remove unused web code (flutter/packages#10376) 2025-11-10 [email protected] Manual roll Flutter from c5e809a to 31a8481 (9 revisions) (flutter/packages#10392) 2025-11-10 [email protected] [file_selector] Add canCreateDirectories to FileDialogOptions (flutter/packages#10317) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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.
The
web_helpers.dartfile was a helper for an inlined version of cross_file that was originally part of this package. When the inline version was replaced with an import ofcross_file, when that was split into its own package, this file wasn't cleaned up, so it was dead code.Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).Footnotes
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