Skip to content

Renamed ContainedButton et al. to ElevatedButton et al. - #61262

Merged
HansMuller merged 5 commits into
flutter:masterfrom
HansMuller:rename_contained_button_to_elevated_button
Jul 11, 2020
Merged

HansMuller merged 5 commits into
flutter:masterfrom
HansMuller:rename_contained_button_to_elevated_button

Conversation

@HansMuller

@HansMuller HansMuller commented Jul 10, 2020 •

Copy link
Copy Markdown
Contributor

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 p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. labels Jul 10, 2020

@darrenaustin darrenaustin 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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants