fix: Add a version constraint to the material_ui dependency - #4075
Merged
Merged
Conversation
The decoupling migration added material_ui as an unconstrained dependency, which makes pub publish fail validation and broke the prepare release workflow. All packages already require Flutter 3.44, which ships with material_ui 1.x, so ^1.0.0 matches the existing environment.
ufrshubham
approved these changes
Sep 30, 2026
spydon
enabled auto-merge (squash)
September 30, 2026 19:38
spydon
disabled auto-merge
September 30, 2026 19:45
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.
Description
The decoupling migration in #4066 added
material_ui: anyto every package.dart pub publishrefuses an unconstrained dependency, so thePrepare releaseworkflow fails during the dry run:https://github.com/flame-engine/flame/actions/runs/36740924859/job/109974817579
This constrains it to
^1.0.0everywhere. All packages already require Flutter>=3.44.0, which is the first stable that ships withmaterial_ui1.x, so this matches the existing environment without narrowing it further. The resolved version in the lockfile is unchanged.Checklist
docsand added dartdoc comments with///.examplesordocs.Breaking Change?