Skip to content

Conversation

HansMuller
Copy link
Contributor

@HansMuller HansMuller commented Jul 10, 2020

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.

@fluttergithubbot fluttergithubbot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jul 10, 2020
Copy link
Contributor

@darrenaustin darrenaustin left a 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'
Copy link
Contributor

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. '
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@Levi-Lesches
Copy link
Contributor

In /lib/src/material/elevated_button_theme.dart, line 133 has the wrong name.

https://github.com/flutter/flutter/pull/61262/files#r453116191

@HansMuller HansMuller merged commit eac1747 into flutter:master Jul 11, 2020
@HansMuller HansMuller deleted the rename_contained_button_to_elevated_button branch July 11, 2020 15:50
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants