How I Halved Our Flutter App Startup Time After Trying Everything

Introduction Last month our Crashlytics dashboard filled up with red, and it was the bad kind: a bug we couldn't reproduce was crashing the app for our most active users. I'm the lead developer, so it was my problem to fix. Flutter makes it so easy to get pixels on the screen that you can forget you still have to deal with memory, async timing, and real devices. Our app had grown big and messy over time, and now that was costing us. The next few weeks were mostly coffee, refactoring, and some days where nothing seemed to work. By the end, we had changed how we build mobile apps. This post covers what went wrong and what we changed. The Immediate Crisis Flutter wasn't the problem. The way we were using it was. Our screens mixed big initialization blocks, API calls, and data parsing right into the layout code. A small UI change from the product team would somehow break a network request on a different screen. Nobody fully understood the codebase anymore. I spent hours ...