Skip to content

Commit

Permalink
resolve #1562 (comment) issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sensuikan1973 committed Aug 17, 2023
1 parent cac8d81 commit 5d00e5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions windows/runner/flutter_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5d00e5b

Please sign in to comment.