ziofat / material_design_icons_flutter

The Material Design Icons (https://materialdesignicons.com/) Icon pack available as set of Flutter Icons.
MIT License
167 stars 33 forks source link

Performance issues: Delayed startup and application crashes #64

Open BokAugust opened 7 months ago

BokAugust commented 7 months ago

What happened to me:

I used a process of elimination to remove, one by one, packages that I thought might be affecting performance, such as firebase suite, admob, unityads, etc. After about 8 hours, I really never expected that it would be material_design_icons_flutter, and it was because I really couldn't suspect it that I ranked it to the last.

In DevTools-Memory, you can see what it did, and yes, it loaded all the resources into memory, which obviously can't be done instantly.

Snipaste_2024-04-29_00-30-37

After removing this package, there are no more delayed starts and app crashes.

My environment: Device • Google Pixel 7 Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 54e66469a9 (11 days ago) • 2024-04-17 13:08:03 -0700 Engine • revision c4cd48e186 Tools • Dart 3.3.4 • DevTools 2.31.1

efraespada commented 6 months ago

Same here. 👎🏼

Screenshot 2024-05-18 at 20 55 55
ziofat commented 6 months ago

We do have all data in once to support dynamic icon loader . What version are you using? Have you use dynamic way to load icons like: MdiIcons['icon-name'] ?