Repository navigation
[material_ui] Add Material motion springs - #13338
Merged
auto-submit[bot] merged 9 commits intoNov 7, 2026
Merged
Conversation
Explain the motion schemes, spring types, and speeds in the MotionSprings docs, list each spring's stiffness and damping ratio, stop using the number helper, tighten the gen_defaults test, and add a pending changelog.
…emplate Springs matches the other Material token catalogs, such as Durations and Curves, and is part of the Material 3 Expressive motion system, so it is now generated by MotionTemplateM3E into motion_defaults_m3e.g.dart. MotionTemplateM3 and motion_defaults_m3.g.dart are unchanged from main.
QuncCccccc
marked this pull request as ready for review
November 3, 2026 01:14
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces Material 3 Expressive spring tokens for standard and expressive motion schemes, generating them via a new MotionTemplateM3E template and exposing them in Springs. It also adds corresponding unit tests. Feedback on the changes points out a missing import of package:flutter/physics.dart in motion.dart, which is required for SpringDescription and will cause a compilation error.
11 tasks
elliette
approved these changes
Nov 6, 2026
elliette
left a comment
Member
There was a problem hiding this comment.
Sorry for the delay here, looks great!
definev
pushed a commit
to definev/flutter
that referenced
this pull request
Nov 9, 2026
…6210) flutter/packages@63881f9...565c657 2026-11-08 [email protected] Roll Flutter from e36b370 to acade0f (1 revision) (flutter/packages#13590) 2026-11-07 [email protected] [material_ui] Fix DropdownMenu losing text cursor when re-enabled (flutter/packages#13179) 2026-11-07 [email protected] Roll Flutter from 09175cd to e36b370 (22 revisions) (flutter/packages#13586) 2026-11-07 [email protected] [material_ui] Add Material motion springs (flutter/packages#13338) 2026-11-06 [email protected] [material_ui] Paint the active RoundedRectSliderTrackShape segment on top in RTL (flutter/packages#13225) 2026-11-06 [email protected] [pigeon] Replace Experimental with Preview (flutter/packages#13579) 2026-11-06 [email protected] [material_ui] Fix minimum width for Material 3 primary tab indicator (flutter/packages#13322) 2026-11-06 [email protected] [material_ui] Dispose drag-end CurvedAnimation in modal bottom sheet (flutter/packages#13167) 2026-11-06 [email protected] [camera_web] Re: Support for camera stream on web (flutter/packages#7950) 2026-11-06 [email protected] Roll Flutter from 3623d2d to 09175cd (61 revisions) (flutter/packages#13578) If this roll has caused a breakage, revert this CL and set the roller to dry run mode 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
11 tasks done
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.
Adds
Springs, a set ofSpringDescriptionconstants created from the Material 3 Expressive motion tokens (md.sys.motion.spring.*).Material spring tokens define a stiffness and a damping ratio, but no mass. Each constant uses a mass of 1.0, so it's the same as
SpringDescription.withDampingRatiowith the token's values. They're generated by a newMotionTemplateM3Eingen_defaults.This PR doesn't change any component.
Fixes flutter/flutter#184932
Pre-Review Checklist
[shared_preferences]///).