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
Deprecate MaterialButtonWithIconMixin #99088
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
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
@@ -422,7 +422,7 @@ class _MouseCursor extends MaterialStateMouseCursor { | |||
String get debugDescription => 'ButtonStyleButton_MouseCursor'; | |||
} | |||
|
|||
/// A widget to pad the area around a [MaterialButton]'s inner [Material]. | |||
/// A widget to pad the area around a [ButtonStyleButton]'s inner [Material]. |
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.
NICE
/// | ||
/// This mixin only exists to give the "label and icon" button widgets a distinct | ||
/// type for the sake of [ButtonTheme]. | ||
@Deprecated( | ||
'This is no longer used by the framework aside from deprecated API. ' |
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.
("APIs"?)
Is this message one that will make sense when people who use this see it? Like, what should they replace it with? Or is that question not meaningful? (I'm not familiar with this API.)
test-exempt: no semantic changes |
This pull request is not suitable for automatic merging in its current state.
|
The google testing failure was unrelated to this change, manually set to green to merge. |
This deprecates MaterialButtonWithIconMixin, which is only being used by classes that are being removed in #98537
Once FlatButton, OutlineButton and RaisedButton are removed, this mixin will be unnecessary.
There are some references to it in ButtonTheme/Data, but those are also planned to be deprecated and eventually removed.
I also removed the doc references in MaterialButtonWithIconMixin to the old buttons, they are actively being removed from the framework, and doing so now in a separate change is helpful with merge conflicts.
Also fixes a small doc reference, fixes #98692
cc @TahaTesser & @HansMuller
Some related issues/PRs for reference:
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.