Updated Windows stuff

This commit is contained in:
Juan Gilsanz Polo 2023-11-21 13:34:32 +00:00
parent ed9293fb70
commit 1ea1a016c1
3 changed files with 20 additions and 10 deletions

View file

@ -31,6 +31,11 @@ bool FlutterWindow::OnCreate() {
this->Show();
});
// Flutter can complete the first frame before the "show window" callback is
// registered. The following call ensures a frame is pending to ensure the
// window is shown. It is a no-op if the first frame hasn't completed yet.
flutter_controller_->ForceRedraw();
return true;
}