In the last week, my app's startup time has become super long, 45 seconds or more, every time I debug it.
After the app successfully runs and displays the ui, a few random swipes and the whole app gets stuck and freezes for upwards of 110 seconds.
With luck, the app goes back to normal, with bad luck, the whole app crashes and exits.
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.
After removing this package, there are no more delayed starts and app crashes.
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'] ?
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.
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