From a83e38dac4f568370375fd1d17c236c39db19cd6 Mon Sep 17 00:00:00 2001 From: Levi Date: Fri, 3 Apr 2026 14:42:32 +0800 Subject: [PATCH] feat: update flutter to 3.24.6 (#1336) --- .github/workflows/build.yml | 2 +- .github/workflows/test.yml | 2 +- ui/flutter/windows/runner/main.cpp | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe5cbea5..449fc4e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ on: env: GO_VERSION: "1.24" - FLUTTER_VERSION: "3.41.2" + FLUTTER_VERSION: "3.41.6" GA4_MEASUREMENT_ID: ${{ secrets.GA4_MEASUREMENT_ID }} GA4_API_SECRET: ${{ secrets.GA4_API_SECRET }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af4fcace..835a70d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ on: env: GO_VERSION: "1.24" - FLUTTER_VERSION: "3.41.2" + FLUTTER_VERSION: "3.41.6" jobs: # lint: diff --git a/ui/flutter/windows/runner/main.cpp b/ui/flutter/windows/runner/main.cpp index 2a5ee88a..657a0070 100644 --- a/ui/flutter/windows/runner/main.cpp +++ b/ui/flutter/windows/runner/main.cpp @@ -65,11 +65,6 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, flutter::DartProject project(L"data"); - // TODO: Remove this. - // This forces Flutter to use a separate thread for Dart. - // This mode will be removed in a future version of Flutter. - project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread); - std::vector command_line_arguments = GetCommandLineArguments();