-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: assetsPackaging, accessing, or using assetsPackaging, accessing, or using assetsa: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: sizeReducing IPA/APK/JS sizesReducing IPA/APK/JS sizesc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
In theory, we could probably shake out assets (e.g. fonts, images) from packages that a user isn't using.
In practice, this is actually pretty hard because of the way strings are used in this and level of detection we can use when assets are used dynamically (e.g. get the name of an asset to show from your service, then show it).
This is difficult even for icon fonts, because if you don't have a const reference to the font using IconData, we may not know if you're using it as a regular font or not.
Today, the work around is to just not use packages that have assets you do not need - or, to re-package them to your liking before shipping thea pp.
See also: b/146889328
jagmit, ycv005, MorelSerge, sachaarbonel, fvisticot and 50 morefzyzcjy, michaelspiss, Jjagg, Nidal-Bakir, jagmit and 10 morejustkawal, tsinis, SAGARSURI, anz-ryu, normidar and 5 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: assetsPackaging, accessing, or using assetsPackaging, accessing, or using assetsa: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: sizeReducing IPA/APK/JS sizesReducing IPA/APK/JS sizesc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team