Remove deprecated MaterialButtonWithIconMixin (#133173)
Part of https://github.com/flutter/flutter/issues/133171
This commit is contained in:
parent
89907f6da3
commit
8c69fd550c
@ -641,10 +641,6 @@ class ButtonThemeData with Diagnosticable {
|
|||||||
return button.padding!;
|
return button.padding!;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (button is MaterialButtonWithIconMixin) {
|
|
||||||
return const EdgeInsetsDirectional.only(start: 12.0, end: 16.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_padding != null) {
|
if (_padding != null) {
|
||||||
return _padding!;
|
return _padding!;
|
||||||
}
|
}
|
||||||
|
@ -440,17 +440,3 @@ class MaterialButton extends StatelessWidget {
|
|||||||
properties.add(DiagnosticsProperty<MaterialTapTargetSize>('materialTapTargetSize', materialTapTargetSize, defaultValue: null));
|
properties.add(DiagnosticsProperty<MaterialTapTargetSize>('materialTapTargetSize', materialTapTargetSize, defaultValue: null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The distinguished type of [MaterialButton].
|
|
||||||
///
|
|
||||||
/// This class is deprecated and will be removed in a future release.
|
|
||||||
///
|
|
||||||
/// 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 { }
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user