You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Flutter 3.10.4 and version 7.0.7296 of this library.
I noticed that somehow the tree shaking does not work correctly.
Maybe it has something to do with the changes in Flutter 3.10 (tree shake does now work for web as well)?
In my project I only use MdiIcons.XXX. Nothing dynamic. I use around 125 icons.
In an older version the tree shaken materialdesignicons-webfont.ttf was 18KB. Now its size is 1MB.
The Flutter build says: Font asset "materialdesignicons-webfont.ttf" was tree-shaken, reducing it from 1279992 to 1034252 bytes (19.2% reduction).
Something is shaken off but not all of it. I looked into the ttf file with an online font viewer and there I see a lot of icons that are not used in my project.
Any idea where the problem comes from? Is there a bug?
Regards,
Florian
The text was updated successfully, but these errors were encountered:
Hi,
I am using Flutter 3.10.4 and version 7.0.7296 of this library.
I noticed that somehow the tree shaking does not work correctly.
Maybe it has something to do with the changes in Flutter 3.10 (tree shake does now work for web as well)?
In my project I only use
MdiIcons.XXX
. Nothing dynamic. I use around 125 icons.In an older version the tree shaken
materialdesignicons-webfont.ttf
was 18KB. Now its size is 1MB.The Flutter build says:
Font asset "materialdesignicons-webfont.ttf" was tree-shaken, reducing it from 1279992 to 1034252 bytes (19.2% reduction).
Something is shaken off but not all of it. I looked into the ttf file with an online font viewer and there I see a lot of icons that are not used in my project.
Any idea where the problem comes from? Is there a bug?
Regards,
Florian
The text was updated successfully, but these errors were encountered: