-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Migrate common buttons to Material 3 #100794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. Just has one basic question...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add test for conditional splashFactory?
something like: https://github.com/flutter/flutter/pull/101046/files
Yeah, I need to add a bunch of tests here. Will do so after I figure out a cleaner solution for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's very beautiful.
examples/api/lib/material/elevated_button/elevated_button.1.dart
Outdated
Show resolved
Hide resolved
…much for the damage to the API.
…ial functions for styleFrom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…102193) * Ensure that the engine frame callbacks are installed if the first scheduled frame is a forced frame (#101544) See #98419 * Migrate common buttons to Material 3 (#100794) * Always finish the timeline event logged by Element.inflateWidget (#101794) * 'Create candidate branch version flutter-2.13-candidate.0 for beta' * 'Update Engine revision to 24a02fa5ee681840cdc842c22f4cb4bdd5ec3115 for beta release 2.13.0-0.2.pre' * Update release-candidate-branch.version Co-authored-by: Jason Simmons <[email protected]> Co-authored-by: Darren Austin <[email protected]>
Part of: #91605
Updated the common buttons:
ElevatedButton
,OutlinedButton
, andTextButton
with support for Material Design 3.In order to use the common buttons with the new Material 3 defaults, turn on the
useMaterial3
flag in theThemeData
:Also, if you use
ElevatedButton.styleFrom
please read the documentation about color role changes in M3 that you may need to account for.Fixes: #99022
Fixes: #99884
Pre-launch Checklist
///
).