Fu Zhichao

Results 5 comments of Fu Zhichao

对于这个问题也是头疼了很久,看到楼上回答有了启发(因为楼上给出的方案我没看懂……所以仅仅是启发) 测了下发现show()在widget树构建好后才运行会导致空白(不晓得这测的对不对),反正我保证show在runApp之前就执行完就没出现过白屏问题了。 ```dart ... await windowManager.waitUntilReadyToShow(windowOptions); await windowManager.show(); runApp(Main()); ``` 这里要await waitUntilReadyToShow方法是因为如果不等待运行完,可能会先show再setSize,运行起来就会有点怪…… 不过这种写法会导致另外一个问题,在debug模式运行代码时,会白屏很小一段时间,然后显示内容,但是在Profile模式下没这问题,build realease也是正常的。

I created the Flutter project in VS code, and here is the problem replication video. https://github.com/Dart-Code/Dart-Code/assets/74097223/2d0bf656-8876-400d-967a-152f5aedcac6

**where.exe** ![image](https://github.com/Dart-Code/Dart-Code/assets/74097223/bfee4b04-1b68-416b-9856-e39450088ebf) **Change SDK** ![image](https://github.com/Dart-Code/Dart-Code/assets/74097223/48f1cd8d-112a-4b38-b581-473c3d85b1f5)

I have found the cause of the problem. I checked this option: ![image](https://github.com/Dart-Code/Dart-Code/assets/74097223/ca74f347-4bbb-4bfd-a208-6a78870004c9) After I unchecked this option and restart VS Code, everything is fine. I think this option causes...

Have you restarted VS Code after checking that option? I need to restart VS code to reproduce the issue. And here is the log file (ticked option and reproduce the...