From e3982263cf99eb7452d38c52e673fdb11d9e286e Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Mon, 2 Feb 2026 05:23:16 +0100 Subject: [PATCH] fix(windows): set ui thread policy --- windows/runner/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index 7b4fcdaa..4c305dd0 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -18,6 +18,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); flutter::DartProject project(L"data"); + project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread); std::vector command_line_arguments = GetCommandLineArguments();