diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index 0bd00d91..d1b6d017 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -26,6 +26,9 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, flutter::DartProject project(L"data"); + // https://github.com/flutter/flutter/issues/175135 + project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread); + std::vector command_line_arguments = GetCommandLineArguments();