Unverified Commit a4aeb778 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Deprecate MaterialButtonWithIconMixin (#99088)

parent fa68ecf7
......@@ -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].
///
/// Redirect taps that occur in the padded area around the child to the center
/// of the child. This increases the size of the button and the button's
......
......@@ -457,9 +457,15 @@ class MaterialButton extends StatelessWidget {
}
}
/// The type of [MaterialButton]s created with [RaisedButton.icon], [FlatButton.icon],
/// and [OutlineButton.icon].
/// The type of [MaterialButton]s created with RaisedButton.icon, FlatButton.icon,
/// and OutlineButton.icon.
///
/// This mixin only exists to give the "label and icon" button widgets a distinct
/// type for the sake of [ButtonTheme].
@Deprecated(
'This was used to differentiate types of FlatButton, RaisedButton, and OutlineButton in ButtonTheme. '
'These buttons have been replaced with TextButton, ElevatedButton, and OutlinedButton, each of which have their own respective themes now. '
'Use one of these button classes instead. '
'This feature was deprecated after v2.11.0-0.0.pre.',
)
mixin MaterialButtonWithIconMixin { }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment