Skip to content

[flutter] adds staticIconProvider annotation to allow icon font to be…#642

Open
josh-burton wants to merge 1 commit intomicrosoft:mainfrom
josh-burton:main
Open

[flutter] adds staticIconProvider annotation to allow icon font to be…#642
josh-burton wants to merge 1 commit intomicrosoft:mainfrom
josh-burton:main

Conversation

@josh-burton
Copy link
Copy Markdown

… more thoroughly tree-shaken

See here for more info: https://api.flutter.dev/flutter/widgets/staticIconProvider-constant.html

Without this annotation, when building for web only around 16% of each icon font was tree-shaken.

With this annotation, all icons can be tree-shaken.

@spydon
Copy link
Copy Markdown

spydon commented May 4, 2025

@spencer-nelson any chance that this PR could get a review? It's a pretty important one.

Sorry for the ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants