Description
Summary
Icons from material_symbols_icons are not rendered in release builds starting with version 4.2928.0. Version 4.2906.0 works correctly.
Root cause
Commit 3324ed64 ("Updated to 2.928 of official fonts, removed use of IconData extensions as IconData is now final and cant be extended") deleted IconDataOutlined, IconDataSharp, and IconDataRounded subclasses and switched to plain const IconData(...) constructors.
Flutter's icon tree shaker uses ConstFinder to scan the compiled Dart kernel for const IconData(...) instances, extracting codePoint, fontFamily, and fontPackage to determine which glyphs to keep in each font file. With the subclass approach in 4.2906.0, fontFamily and fontPackage were baked into the subclass constructor, making them visible to ConstFinder. After the switch to plain IconData, the tree shaker appears unable to associate codepoints with the Material Symbols font files, resulting in all glyphs being stripped.
Build output confirms:
Font asset "MaterialSymbolsOutlined.ttf" was tree-shaken, reducing it from 8698948 to 2380 bytes (100.0% reduction).
Font asset "MaterialSymbolsRounded.ttf" was tree-shaken, reducing it from 14967396 to 2632 bytes (100.0% reduction).
Font asset "MaterialSymbolsSharp.ttf" was tree-shaken, reducing it from 8698948 to 2380 bytes (100.0% reduction).
100% reduction means all icon glyphs were removed, leaving blank icons at runtime.
Reproduction
- Create a Flutter app using
material_symbols_icons: 4.2928.0 - Use any
Symbols.*icon (e.g.,Icon(Symbols.search)) - Build a release APK:
flutter build apk --release - Install on a device — icons are blank
Pinning to 4.2906.0 resolves the issue.
Environment
- Flutter 3.41.4 (stable)
- Dart 3.11.1
- Tested on Huawei P20 lite (ANE-LX2J), Android
Workaround
Pin the package to 4.2906.0 in pubspec.yaml:
material_symbols_icons: 4.2906.0
Activity
Javernaver commentedon Mar 31, 2026
same for me, tested on motorola edge 50 ultra and some icons are not showing in release mode
timmaffett commentedon Mar 31, 2026
Unfortunately we had to make this change because of commit flutter/flutter@5940fcf
(And issues flutter/flutter#181342 and flutter/flutter#181344 )
and I thought I had implemented the solution properly.. obviously not.. LOL
I am under a deadline at work, so it will be later tonight/tomorrow before I can look at this..
-tim
timmaffett commentedon Mar 31, 2026
OK, this is fixed in 4.2928.1
The tree shaker can only see static strings and cannot resolve const variables. I was hoping to make the file size a little smaller, but there was no other reason to do it really. I now just use strings.
Sorry about that one guys!
timmaffett commentedon Mar 31, 2026
..and I would love a verification that it worked for you so I can close this!
timmaffett commentedon Apr 1, 2026
erf commentedon Apr 1, 2026
I'm experiencing missing icons still in ^4.2928.1 . On iOS
harsh774 commentedon Apr 1, 2026
I am also facing the same issue. On Web, iOS and Android.
Working for me if downgraded to 4.2906.0
thomqr commentedon Apr 1, 2026
same issue on web release.
4.2906.0 and 4.2906.1 what supposed to be a fix patch
Kr328 commentedon Apr 2, 2026
I also discovered a strange behavior:
In version 4.2928.0, when using a single icon alone, tree shaking works correctly. However, once a second specific icon is introduced, one of them becomes invisible.
For example, with [Symbols.expand_content, Symbols.keep_off]: when only Symbols.expand_content is used, it works fine; but after adding Symbols.keep_off, Symbols.expand_content stops rendering.
gianpaolodn commentedon Apr 3, 2026
Facing the same issue also with the version 4.2928.1, reverted to 4.2906.0
My fault not checking the repo before spending hours trying to figure this out
romarito commentedon Apr 8, 2026
The 4.2928.1 is normal in Android 7 but failed in Android 13, some icons are invisible there - in debug mode is ok, fail on release.
Update: In web app is ok, too.
danieeelfc commentedon Apr 11, 2026
I’m seeing the same issue here.
These two icons render correctly on both the emulator and a physical device:
• Symbols.ad_off (0xf7b2)
• Symbols.do_not_disturb_on (0xf08f)
However, the following icons only render on the Android emulator and iOS simulator. They do not render on a physical Android device:
• Symbols.chrome_reader_mode (0xe86d)
• Symbols.pill (0xe11f)
romarito commentedon Apr 13, 2026
It's not working on release, only in debug.
jlnrrg commentedon Apr 20, 2026
Icons Disappearing Problem
When using the version
4.2928.0or4.2928.1some icons seem to be removed by the tree-shaking even though they are in use.This only occurs when building the application for real.
In the below examples you can see the commands and if all icons were visible.
flutter version
Flutter 3.38.9 • channel stable • https://github.com/flutter/flutter.git Framework • revision 67323de285 (3 months ago) • 2026-01-28 13:43:12 -0800 Engine • hash 5eb06b7ad5bb8cbc22c5230264c7a00ceac7674b (revision 587c18f873) (2 months ago) • 2026-01-27 23:23:03.000Z Tools • Dart 3.10.8 • DevTools 2.51.1Code
I took the default flutter example app and added this package to the
pubspec.yamland modified themain.dart:Commands
Version:
4.2928.0&4.2928.1flutter run -d chrome --releaseflutter build webpython3 -m http.server 8080 --directory ./build/webVersion:
4.2906.0flutter run -d chrome --releaseflutter build webpython3 -m http.server 8080 --directory ./build/webImages
Visible Icons

Some Icons disappear

timmaffett commentedon Apr 23, 2026
I am at a loss to what is going on. The Flutter team made it so that we had to change how we define our IconData definitions (they made that class final, so I could no longer extend it) - but in the process they have somehow broken the tree shaking, which was the thing they purported to be fixing with their change.
These reports are helpful - we should also be filing bug with the flutter project for having broken icon tree shaking.
3 remaining items
mtallenca commentedon May 15, 2026
Using 4.2928.1, the icons don't render however the build log indicates the icons are also not tree shaken. They just don't appear.
JetA2 commentedon May 19, 2026
I used Xcode to install a "Profile" build (supposedly release mode) on a device. Icons work.
Submitted the same version to the iOS App Store: disappearing icons.
This is with Flutter 3.41.9 so it seems the Flutter PR did not address this.
deminearchiver commentedon May 19, 2026
Flutter 3.44 was released (or will be released in the coming days). Perhaps this issue might've been fixed? Was this problem occuring when using the master branch of Flutter?
mjbader commentedon May 19, 2026
In the Flutter 3.44.0 release notes:
Looks like they fixed the tree shaking. I tested with our app and I no longer have any missing icons.
jlnrrg commentedon May 19, 2026
I also tried it with the latest Flutter 3.44.0 version and it seems to be fixed.
Similar to my previous comment I used the following:
Version:
4.2928.1flutter run -d chrome --releaseflutter build web python3 -m http.server 8080 --directory ./build/webPlease take note that this time the 2nd cmd also worked. 🎉
JetA2 commentedon May 20, 2026
My issue is that I can't reproduce the bug in my development environment. I'm using Flutter 3.41.9 to run
flutter run --releaseand install to a real iOS device. The icons display correctly.The same code when submitted to the Apple App Store has disappearing icons.
Is the tree-shaking happening differently when building for the App Store?
In my case, the bug seems to affect only icons using the
fillandweightproperties.mkustermann commentedon May 20, 2026
/cc @dcharkes
dcharkes commentedon May 20, 2026
For web, this seems to be the same issue as
Interesting, I was not expecting it to be be fixed on web. flutter/flutter#181849 only targets the VM, not web.
Yes, flutter/flutter#181849, adds a fix for the VM. The PR adds an entry-point for the VM.
jlnrrg commentedon May 20, 2026
@JetA2 please refer to my above #46 (comment)
flutter run --releaseworked all along. It was the issue with an actuallybuildapllication.JetA2 commentedon May 20, 2026
@jlnrrg ah, I see it now thanks!
I managed to reproduce the bug with Flutter 3.41.9 on iOS using
flutter build ipa --export-method ad-hoc.Doing the same with Flutter 3.44.0 the icons display correctly so it seems to be fixed indeed!
reedom commentedon May 22, 2026
Confirmed fixed on my side too (Flutter 3.44.0).
Thanks everyone for reporting and supporting.
Closing.
tulioccalazans commentedon Jul 28, 2026
The problem persists in version 4.2960.0
Some icons are not rendering in release builds.
This issue should be reopened.
[record_use] Migrate IconTreeShaker to `package:record_use` (flutter#…
dcharkes commentedon Aug 5, 2026
I landed flutter/flutter#190225 on master yesterday. Could someone take a look if that fixes your issue?