Skip to content

Tree shake material icons #16311

@tvolkert

Description

@tvolkert

Inspired by http://fluttericon.com/

We should be able to tree-shake our .ttf file that holds our material icons. Un-shaken, it's ~130K in size, but every icon takes up only ~300 bytes. We know from the app's usage of Icons what icons it actually needs, so we should be able to ship a font file that's much lower than 130K - likely saving over 100K on final app bundle size.

Metadata

Metadata

Assignees

Labels

a: sizeReducing IPA/APK/JS sizesc: performanceRelates to speed or footprint issues (see "perf:" labels)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.perf: app sizePerformance issues related to app size (binary/code size) or disk spacewaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions