Skip to content

Conversation

@christopherfujino
Copy link
Contributor

@christopherfujino christopherfujino commented Feb 17, 2023

Fixes #120459

@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label Feb 17, 2023
@goderbauer
Copy link
Member

(triage) @christopherfujino Do you still have plans to finish this one up? Would be awesome to have better documentation on this!

@christopherfujino
Copy link
Contributor Author

(triage) @christopherfujino Do you still have plans to finish this one up? Would be awesome to have better documentation on this!

Yup, thanks for the ping!

@christopherfujino
Copy link
Contributor Author

ping @christopherfujino please land this.

@christopherfujino christopherfujino marked this pull request as ready for review March 21, 2023 23:48
@christopherfujino
Copy link
Contributor Author

@goderbauer this is my first framework doc PR, does this align with our style?

Comment on lines 112 to 113
Copy link
Member

Choose a reason for hiding this comment

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

nit: I would rephrase this, instead of saying "should" I would say, tree shaking only works if you do this. Otherwise your binary will be larger than necessary (or whatever the failure mode is).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated, WDYT?

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@christopherfujino christopherfujino added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 7, 2023
@auto-submit auto-submit bot merged commit 3ea2d72 into flutter:master Apr 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 8, 2023
exaby73 pushed a commit to exaby73/flutter_nevercode that referenced this pull request Apr 17, 2023
@slavap
Copy link

slavap commented Jul 25, 2023

Reading comment added for StaticIconProvider still does not answer the question - "How to make tree shaking working for custom font?". I have custom icon font added to assests and declared:

@staticIconProvider
abstract final class MyIcons { ... }

but don't see tree shaking works for my custom font. What should I do to make it work?

@christopherfujino christopherfujino deleted the document-icon-data branch July 25, 2023 17:22
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 framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the @staticIconProvider annotation in the IconData class dartdoc

3 participants