-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Renamed ContainedButton et al. to ElevatedButton et al. #61262
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
Renamed ContainedButton et al. to ElevatedButton et al. #61262
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.
Minor wording change, but LGTM.
|
||
@Deprecated( | ||
'This class was briefly released with the wrong name. The correct name is ElevatedButton. ' | ||
'This class was deprecated after within 24 hours of its debut' |
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.
'was deprecated after 24 hours of its debut '
/// Please use [ElevatedButtonTheme]. | ||
@Deprecated( | ||
'This class was briefly released with the wrong name. ' | ||
'The correct name is ContainedButtonThemeData. ' |
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.
Shouldn't this be ElevatedButtonThemeData
?
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.
Yes, you're correct, thanks for pointing that out.
In /lib/src/material/elevated_button_theme.dart, line 133 has the wrong name. https://github.com/flutter/flutter/pull/61262/files#r453116191 |
The "New Button Universe" PR, #59702, landed less than 24 hours ago. We've just been informed by Material Design spec developers that they'd really prefer to call
ContainedButton
ElevatedButton
. In fact, when an updated Material Design spec is published, the official name will have been changed.Since the ContainedButton class is so new, and because "ElevatedButton" is a little closer to the original "RaisedButton" name, we're going to quickly rename ContainedButton to be ElevatedButton now, and deprecate the old class names. The old classes still exist, but should be gone within a week.
I apologize for the confusion.