From 0297e5e9e9fad9bb6dee3c64e9c853fe252ce05d Mon Sep 17 00:00:00 2001 From: hm21 Date: Wed, 16 Sep 2026 08:57:12 +0200 Subject: [PATCH] ci: test the Flutter 3.44 leg against the material_ui floor material_ui 1.3.0 and cupertino_ui 1.1.0 (published 2026-09-15) keep the `flutter: >=3.44.0` constraint but use `awaitNotRequired`, which only exists in the `meta` bundled with Flutter 3.47. Since then every run of the 3.44 leg fails while compiling the tests, whatever the change under test. Downgrade those two packages to the minimum the pubspec allows on that leg. The lower bound is the version that leg should be testing anyway, and the 3.47 leg still resolves the newest. --- .github/workflows/flutter_analysis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/flutter_analysis.yml b/.github/workflows/flutter_analysis.yml index cf13cf8f..99c244be 100644 --- a/.github/workflows/flutter_analysis.yml +++ b/.github/workflows/flutter_analysis.yml @@ -57,6 +57,15 @@ jobs: - name: Install dependencies run: flutter pub get + # material_ui 1.3.0 / cupertino_ui 1.1.0 still declare Flutter >=3.44 + # but use `awaitNotRequired` from the `meta` that ships with 3.47, so + # they do not compile on 3.44. Test the minimum Flutter against the + # minimum of those two packages instead of the newest one pub picks; + # the 3.47 leg keeps covering the newest. + - name: Pin material_ui / cupertino_ui to the declared minimum + if: matrix.flutter-version == '3.44.0' + run: flutter pub downgrade material_ui cupertino_ui + - name: Analyze code run: flutter analyze .