0

I'm testing Flutter for Windows and i noticed that, even with a basic 'HelloWorld' app, the content appears slowly, i have a 1 second blank screen inside the app (see gif below):

enter image description here

The app is packaged with default command (flutter build windows).

How can i improve performance at startup ? Is it possible to show the window when content is ready to display ? Or shall i use a splashscreen (I don't even know if this is possible with windows, and if so how) ?

Thanks to everybody!

Ansharja
  • 1,237
  • 1
  • 14
  • 37

1 Answers1

1

How can i improve performance at startup ?

Flutter for Windows currently only supports debug builds, which among other things means that it's using JIT compilation, not AOT as a release build of a Flutter application would. Slower startup time is one of the downsides of JIT.

Is it possible to show the window when content is ready to display ?

There is currently no callback hook for when the first frame is drawn, so this would be difficult, if not impossible, to do accurately.

Or shall i use a splashscreen (I don't even know if this is possible with windows, and if so how) ?

There is no support for splashscreens in Flutter's Windows embedding.

smorgan
  • 20,228
  • 3
  • 47
  • 55
  • Thanks for your answer, i hope that desktop support will get better soon! In your opinion is there anything that could be done to improve the situation, or to get a better user experience at startup? – Ansharja Jan 11 '20 at 10:24
  • Yes, AOT support should improve startup time. – smorgan Jan 11 '20 at 15:27