[Windows] Hide app until first frame is drawn (#109816)

This commit is contained in:
Loïc Sharma
2022-08-30 07:26:21 -07:00
committed by GitHub
parent df3419bd21
commit c60cf97c19
29 changed files with 180 additions and 91 deletions

View File

@@ -5,6 +5,7 @@
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
#include <windef.h>
#include "flutter_window.h"
#include "utils.h"
@@ -31,7 +32,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
if (!window.CreateAndShow(L"windows_startup_test", origin, size)) {
if (!window.Create(L"windows_startup_test", origin, size)) {
return EXIT_FAILURE;
}
window.SetQuitOnClose(true);