[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

@@ -30,6 +30,11 @@ bool FlutterWindow::OnCreate() {
}
RegisterPlugins(flutter_controller_->engine());
SetChildContent(flutter_controller_->view()->GetNativeWindow());
flutter_controller_->engine()->SetNextFrameCallback([&]() {
this->Show();
});
return true;
}