This reverts commit c689c97d0579d2a215034359a3cbcdc61173d2ab. The Dart analyzer in Google3 has been upgraded so we won't need this.
This commit is contained in:
parent
c12b99f282
commit
3c9e9b3410
@ -161,7 +161,7 @@ class FlatButton extends MaterialButton {
|
|||||||
///
|
///
|
||||||
/// This class only exists to give FlatButtons created with [FlatButton.icon]
|
/// This class only exists to give FlatButtons created with [FlatButton.icon]
|
||||||
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
|
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
|
||||||
class _FlatButtonWithIcon extends FlatButton implements MaterialButtonWithIconMixin {
|
class _FlatButtonWithIcon extends FlatButton with MaterialButtonWithIconMixin {
|
||||||
_FlatButtonWithIcon({
|
_FlatButtonWithIcon({
|
||||||
Key key,
|
Key key,
|
||||||
@required VoidCallback onPressed,
|
@required VoidCallback onPressed,
|
||||||
|
@ -282,6 +282,4 @@ class MaterialButton extends StatelessWidget {
|
|||||||
///
|
///
|
||||||
/// This mixin only exists to give the "label and icon" button widgets a distinct
|
/// This mixin only exists to give the "label and icon" button widgets a distinct
|
||||||
/// type for the sake of [ButtonTheme].
|
/// type for the sake of [ButtonTheme].
|
||||||
abstract class MaterialButtonWithIconMixin {
|
mixin MaterialButtonWithIconMixin { }
|
||||||
MaterialButtonWithIconMixin._();
|
|
||||||
}
|
|
||||||
|
@ -185,7 +185,7 @@ class OutlineButton extends MaterialButton {
|
|||||||
//
|
//
|
||||||
// This class only exists to give RaisedButtons created with [RaisedButton.icon]
|
// This class only exists to give RaisedButtons created with [RaisedButton.icon]
|
||||||
// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
|
// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
|
||||||
class _OutlineButtonWithIcon extends OutlineButton implements MaterialButtonWithIconMixin {
|
class _OutlineButtonWithIcon extends OutlineButton with MaterialButtonWithIconMixin {
|
||||||
_OutlineButtonWithIcon({
|
_OutlineButtonWithIcon({
|
||||||
Key key,
|
Key key,
|
||||||
@required VoidCallback onPressed,
|
@required VoidCallback onPressed,
|
||||||
|
@ -171,7 +171,7 @@ class RaisedButton extends MaterialButton {
|
|||||||
///
|
///
|
||||||
/// This class only exists to give RaisedButtons created with [RaisedButton.icon]
|
/// This class only exists to give RaisedButtons created with [RaisedButton.icon]
|
||||||
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
|
/// a distinct class for the sake of [ButtonTheme]. It can not be instantiated.
|
||||||
class _RaisedButtonWithIcon extends RaisedButton implements MaterialButtonWithIconMixin {
|
class _RaisedButtonWithIcon extends RaisedButton with MaterialButtonWithIconMixin {
|
||||||
_RaisedButtonWithIcon({
|
_RaisedButtonWithIcon({
|
||||||
Key key,
|
Key key,
|
||||||
@required VoidCallback onPressed,
|
@required VoidCallback onPressed,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user