From 8c69fd550c6c63da3ae5a8ce9c38bab1ecf86149 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Wed, 23 Aug 2023 18:06:14 -0500 Subject: [PATCH] Remove deprecated MaterialButtonWithIconMixin (#133173) Part of https://github.com/flutter/flutter/issues/133171 --- .../flutter/lib/src/material/button_theme.dart | 4 ---- .../flutter/lib/src/material/material_button.dart | 14 -------------- 2 files changed, 18 deletions(-) diff --git a/packages/flutter/lib/src/material/button_theme.dart b/packages/flutter/lib/src/material/button_theme.dart index 1406f2deb76..438d8fc6d01 100644 --- a/packages/flutter/lib/src/material/button_theme.dart +++ b/packages/flutter/lib/src/material/button_theme.dart @@ -641,10 +641,6 @@ class ButtonThemeData with Diagnosticable { return button.padding!; } - if (button is MaterialButtonWithIconMixin) { - return const EdgeInsetsDirectional.only(start: 12.0, end: 16.0); - } - if (_padding != null) { return _padding!; } diff --git a/packages/flutter/lib/src/material/material_button.dart b/packages/flutter/lib/src/material/material_button.dart index 365f8c56691..2f3c5cc96ad 100644 --- a/packages/flutter/lib/src/material/material_button.dart +++ b/packages/flutter/lib/src/material/material_button.dart @@ -440,17 +440,3 @@ class MaterialButton extends StatelessWidget { properties.add(DiagnosticsProperty('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 { }