Repository navigation
INTER-2915: fix: unbreak latest-stable Flutter CI in example app - #214
Merged
Merged
Conversation
Flutter 3.47 deprecates package:flutter/material.dart, which fails `flutter analyze` on latest stable. The replacement, package:material_ui, needs Flutter >= 3.47, above the 3.44 minimum, so ignore the lint on the two example imports until the minimum is raised. https://pub.dev/packages/material_ui Refs: INTER-2915
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the example-only deprecation-warning suppressions.
No open issues 🎉
What changed in this PR
Suppresses the Flutter 3.47 material.dart deprecation warning in the example app while retaining Flutter 3.44 compatibility. The published SDK is unchanged.
Changes:
- Adds line-scoped
deprecated_member_useignores to both example Material imports. - Documents why migration to
package:material_uiis deferred, with a package link.
| File | Description |
|---|---|
example/test/widget_test.dart |
Suppresses the Material import warning in widget tests and explains compatibility constraints. |
example/lib/main.dart |
Suppresses the Material import warning in the example app and explains compatibility constraints. |
Review effort: Balanced
Flutter 3.50 refuses to build Android apps with Gradle below 9.3.1, which fails the latest-stable Android example builds. Refs: INTER-2915
Flutter 3.50 refuses to build Android apps with AGP below 9.1.1 or the Kotlin Gradle plugin below 2.4.10. Refs: INTER-2915
Contributor
pnpm exec changesetto create a changeset. |
TheUnderScorer
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
INTER-2915 | Failing run | material_ui on pub.dev | Flutter 3.50 Android minimums
Why
Latest stable Flutter (3.50) fails CI on the example app:
flutter analyzeflags the deprecatedmaterial.dartimport, and Android builds reject the example's Gradle, AGP, and Kotlin plugin versions.Things to note
android/settings.gradle(used only when opening the plugin by itself) still pins the old versions.package:material_uiyet: every version needs Flutter >= 3.47, and our minimum is 3.44.0. On 3.44 the ignore matches nothing, which is harmless becauseunnecessary_ignoreis off influtter_lints6.Verification
Change outline
Both example imports of material get a line-scoped ignore, in
example/lib/main.dartandexample/test/widget_test.dart:+// ignore: deprecated_member_use import 'package:flutter/material.dart';Example Android tooling raised to Flutter 3.50's hard minimums:
gradle-wrapper.propertiessettings.gradlesettings.gradle