Skip to content

Fix example apps for Flutter 3.50 (material_ui, AGP 9.1.1) - #76

Open
rickdijk wants to merge 3 commits into
mainfrom
rick/fpl-59-material-ui-examples
Open

rickdijk wants to merge 3 commits into
mainfrom
rick/fpl-59-material-ui-examples

Conversation

@rickdijk

@rickdijk rickdijk commented Nov 30, 2026 •

Copy link
Copy Markdown

Fixes the CI failures on Flutter stable 3.50.1. That release deprecates package:flutter/material.dart in favour of package:material_ui/material_ui.dart. Both example apps still imported material.dart, so flutter analyze reported a deprecated_member_use info and exited 1. This breaks CI on main and on #74 and #75.

Changes

  • google_api_availability/example and google_api_availability_android/example: import package:material_ui/material_ui.dart and add material_ui: ^1.0.0.
  • Both example apps and the plugin's google_api_availability_android/android/build.gradle.kts: Android Gradle Plugin 9.1.0 → 9.1.1. Flutter 3.50 requires 9.1.1 or later, so flutter build apk failed in CI.
  • No version bump or CHANGELOG entry. The examples are not published. The plugin's buildscript classpath only matters when the plugin is built standalone; an app always uses its own AGP version. The android package gets a version bump in [google_api_availability_android]: Raise minimum SDK to Dart 3.12 and Flutter 3.44 #74.

Why ^1.0.0
material_ui 1.0.0 to 1.3.0 support Dart 3.12 / Flutter 3.44, the new SDK floor from the FPL-59 PRs. 1.4.0 and later need Flutter 3.47. With ^1.0.0, Flutter 3.44 resolves 1.3.0 or lower and newer SDKs get the latest version.

Merge order
Can merge independently of the SDK floor PRs (#73, #74, #75). Merging this first makes CI on #74 and #75 green after a rebase. The example environment stays as it is here; #74 and #75 raise it to ^3.12.0.

No linked issue; this is maintenance.

Linear: FPL-59

Pre-launch Checklist

  • I made sure the project builds.
  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I rebased onto main.
  • I added new tests to check the change I am making, or this PR does not need tests.
  • I made sure all existing and new tests are passing.
  • I ran dart format . and committed any changes.
  • I ran flutter analyze and fixed any errors.

Verification (local, both example apps)

  • Flutter 3.44.9: flutter pub get + flutter analyze (no issues, material_ui 1.2.0); after flutter pub downgrade (material_ui 1.0.0) also no issues.
  • Flutter 3.47.4: flutter pub get + flutter analyze (no issues).
  • Flutter 3.50.1 is not cached locally; CI on this PR covers it.

🤖 Generated with Claude Code

rickdijk and others added 2 commits November 30, 2026 16:52
Flutter 3.50 deprecates package:flutter/material.dart in favour of
package:material_ui, which makes flutter analyze fail in CI.
material_ui 1.0.0 to 1.3.0 support Flutter 3.44, so ^1.0.0 works with
the new SDK floor.

Linear: FPL-59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Flutter 3.50 requires AGP 9.1.1 or later, so flutter build apk failed
in CI with 9.1.0.

Linear: FPL-59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rickdijk rickdijk changed the title Import material_ui in the example apps (Flutter 3.50 deprecation) Fix example apps for Flutter 3.50 (material_ui, AGP 9.1.1) Nov 30, 2026
Keeps the plugin's build classpath in line with the example apps.

Linear: FPL-59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant