Skipped x frames! The application may be doing too much work on its main thread. What does this error signify and how to solve this?

If you are not doing anything unnecessary in your main, you can just ignore it.

the number of skipped frames is dependent on:

  • The number of static and top-level variables that need initiation on startup.

  • Speed of the CPU that will be doing computational work, like parsing JSONs at startup.

  • Speed of the device storage for initiating databases and shared preferences.

  • Whether you're using a debug or release build of your app.

  • The speed of the network connection in case of needing some necessary data before the app starts up.

  • Whether you're using an emulator or a physical device.

  • The size of the widget tree in your home page.


This is something you can't control sometimes, I faced this situation where an old android phone showed it skipped 180 frames where as a new phone said it skipped 25.

Tags:

Flutter