[Homepage] 5. Generated after fluter run

This commit is contained in:
Stephen
2024-01-11 15:04:09 +07:00
parent ce0b753da5
commit a91f039dfc
3 changed files with 39 additions and 21 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;
}