Repository navigation
Delete unused icons from DevTools - #10101
Open
Abhilash-Puthukkudi wants to merge 1 commit into
Open
Abhilash-Puthukkudi wants to merge 1 commit into
Abhilash-Puthukkudi wants to merge 1 commit into
Conversation
Remove 254 icon files under packages/devtools_app/icons/ that are not referenced anywhere in the repository, most of them left over from the port of the Inspector from IntelliJ. The `icons/preview/` directory was never listed in pubspec.yaml, so it was never bundled. To stay conservative, this keeps: - all of `icons/inspector/widget_icons/`, since the Property Editor builds paths into it at runtime from refactor labels; - `icons/material_symbols/LICENSE`; - every resolution or theme variant of an icon that is still referenced. `icons/actions/`, `icons/gutter/` and `icons/memory/` are now empty, so they are removed from the `flutter.assets` list. Fixes flutter#2072
Abhilash-Puthukkudi
requested review from
a team,
kenzieschmoll and
srawlins
as code owners
November 29, 2026 15:40
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes several unused SVG icon files from the repository and updates packages/devtools_app/pubspec.yaml to remove references to the deleted asset directories (icons/actions/, icons/gutter/, and icons/memory/). There are no review comments to evaluate, and the changes are straightforward, so I have no feedback to provide.
Author
|
This PR doesn't change the DevTools UI or behavior. Could a maintainer please add the |
This branch has not been deployed
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.
Fixes #2072
This deletes 254 icon files (about 705 KB) under
packages/devtools_app/icons/that nothing in the repository references. Most are left over from porting the Inspector from IntelliJ, as described in the issue's September 2024 comment that re-scoped it to this cleanup.How the files were chosen:
icons/, I searched every tracked text file in the repo (Dart, YAML, HTML, JS, Markdown, golden.txtfiles) for its path relative topackages/devtools_app/.icons/inspector/widget_icons/${refactor.label.toLowerCase()}.png.Kept on purpose, to stay conservative:
icons/inspector/widget_icons/, because of the runtime lookup above.icons/material_symbols/LICENSE.@2x,_dark,.svg) of an icon that is still referenced. For example,phone.pngstays becausephone@2x.pngis used. Moving to Flutter's2.0x/resolution-aware layout, the original ask in this issue, can be a follow-up.pubspec.yaml:
icons/actions/,icons/gutter/andicons/memory/are now empty, so I removed them fromflutter.assets.icons/preview/(45 files) was never listed inpubspec.yaml, so it was never bundled.Verification:
icons/...path referenced in Dart or YAML still exists after the change. The only unmatched string is in a code comment inlogging_controller.dartand never existed.flutter analyzereports no new issues.test/shared,test/screens/{performance,memory,debugger,logging}andtest/frameworkpass. These bundle the app's assets and render many of the remaining icons.No tests were added because this change only deletes unused assets.
Pre-launch Checklist
General checklist
///).Issues checklist
contributions-welcomeorgood-first-issuelabel.contributions-welcomeorgood-first-issuelabel. I understand this means my PR might take longer to be reviewed.Tests checklist
AI-tooling checklist
Feature-change checklist
release-notes-not-requiredlabel or left a comment requesting the label be added.packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md.If you need help, consider asking for help on Discord.