Skip to content

[animations] Migrate to material_ui - #12467

Merged
auto-submit[bot] merged 3 commits into
flutter:mainfrom
Piinks:migrate-Animations
Aug 19, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:mainfrom
Piinks:migrate-Animations

Conversation

@Piinks

@Piinks Piinks commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Migrates the animations package to the material_ui package.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 13, 2026
@github-actions github-actions Bot added p: animations triage-framework Should be looked at in framework triage labels Aug 13, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the animations package, its examples, and tests to use an external material_ui package instead of Flutter's standard material library, bumping the package version to 3.0.0. Feedback indicates that as a core Flutter package, animations must rely on the built-in material library, and the external dependency and import changes should be reverted.

Comment thread packages/animations/pubspec.yaml
Comment thread packages/animations/lib/src/fade_scale_transition.dart
Comment thread packages/animations/example/pubspec.yaml
Comment thread packages/animations/pubspec.yaml
Comment thread packages/animations/pubspec.yaml Outdated
Comment thread packages/animations/example/lib/main.dart Outdated
required this.transitionDuration,
required this.reverseTransitionDuration,
required _ModalTransitionBuilder transitionBuilder,
required this._transitionBuilder,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change due to newly firing prefer_initializing_formals with Dart 3.12

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I have been loving migrating these whenever I see them.

@Piinks

Piinks commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

CI was a timeout, re-running

@Piinks
Piinks requested a review from stuartmorgan-g August 17, 2026 18:27
@Piinks
Piinks force-pushed the migrate-Animations branch from 526e55a to 1b484a8 Compare August 19, 2026 17:34

@justinmc justinmc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 . Did you use the dart fix and if so did it work correctly?

repository: https://github.com/flutter/packages/tree/main/packages/animations
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+animations%22
version: 2.2.0
version: 3.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major bump makes sense to me for this change 👍

Comment on lines +8 to +9
sdk: ^3.12.0
flutter: ">=3.44.0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call upgrading these to the latest too.

required this.transitionDuration,
required this.reverseTransitionDuration,
required _ModalTransitionBuilder transitionBuilder,
required this._transitionBuilder,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I have been loving migrating these whenever I see them.

@Piinks

Piinks commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Did you use the dart fix and if so did it work correctly?

I did! It worked great. Changing the min sdk was something I had to do myself though. Not a big lift by any means.

@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 19, 2026
@auto-submit
auto-submit Bot merged commit b2ec4e0 into flutter:main Aug 19, 2026
13 checks passed
pull Bot pushed a commit to Superoldman96/flutter that referenced this pull request Aug 20, 2026
…r#191420)

flutter/packages@fdd7d39...1785501

2026-08-20 [email protected] [material_ui]
Cleans up shader files and exposes ink_splash shader
(flutter/packages#12421)
2026-08-19 [email protected] [material_ui] Fixes
typo in code and tests (flutter/packages#12503)
2026-08-19 [email protected] [pigeon]
Fixes lint error from unused codec (flutter/packages#12512)
2026-08-19 [email protected]
[camera_android_camerax] Add explicit concurrent-futures dependency
(flutter/packages#12373)
2026-08-19 [email protected] [go_router]
migrates to material_ui and cupertino_ui (flutter/packages#12504)
2026-08-19 [email protected] [animations] Migrate to material_ui
(flutter/packages#12467)
2026-08-19 [email protected] [material_ui] Add
Material tokens (version 38.2.50) (flutter/packages#12471)
2026-08-19 [email protected] Add
`triage-design` label (flutter/packages#12488)
2026-08-19 [email protected]
[google_maps_flutter_platform_interface] Fix PinConfig code sample
(flutter/packages#12259)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: animations triage-framework Should be looked at in framework triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants