Unverified Commit 5af0429f authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Remove API (#73746)

parent 1b373f45
......@@ -130,89 +130,6 @@ class ButtonTheme extends InheritedTheme {
}) : assert(data != null),
super(key: key, child: child);
/// Creates a button theme that is appropriate for button bars, as used in
/// dialog footers and in the headers of data tables.
///
/// Deprecated. Please use [ButtonBarTheme] instead which offers more
/// flexibility to configure [ButtonBar] widgets.
///
/// To migrate instances of code that were just wrapping a [ButtonBar]:
///
/// ```dart
/// ButtonTheme.bar(
/// child: ButtonBar(...)
/// );
/// ```
///
/// you can just remove the `ButtonTheme.bar` as the defaults are now handled
/// by [ButtonBar] directly.
///
/// If you have more complicated usages of `ButtonTheme.bar` like:
///
/// ```dart
/// ButtonTheme.bar(
/// padding: EdgeInsets.symmetric(horizontal: 10.0),
/// textTheme: ButtonTextTheme.accent,
/// child: ButtonBar(...),
/// );
/// ```
///
/// you can remove the `ButtonTheme.bar` and move the parameters to the
/// [ButtonBar] instance directly:
///
/// ```dart
/// ButtonBar(
/// padding: EdgeInsets.symmetric(horizontal: 10.0),
/// textTheme: ButtonTextTheme.accent,
/// ...
/// );
/// ```
///
/// You can also replace the defaults for all [ButtonBar] widgets by updating
/// [ThemeData.buttonBarTheme] for your app.
@Deprecated(
'Use ButtonBarTheme instead. '
'This feature was deprecated after v1.9.1.'
)
ButtonTheme.bar({
Key? key,
ButtonTextTheme textTheme = ButtonTextTheme.accent,
double minWidth = 64.0,
double height = 36.0,
EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8.0),
ShapeBorder? shape,
bool alignedDropdown = false,
Color? buttonColor,
Color? disabledColor,
Color? focusColor,
Color? hoverColor,
Color? highlightColor,
Color? splashColor,
ColorScheme? colorScheme,
required Widget child,
ButtonBarLayoutBehavior layoutBehavior = ButtonBarLayoutBehavior.padded,
}) : assert(textTheme != null),
assert(minWidth != null && minWidth >= 0.0),
assert(height != null && height >= 0.0),
assert(alignedDropdown != null),
data = ButtonThemeData(
textTheme: textTheme,
minWidth: minWidth,
height: height,
padding: padding,
shape: shape,
alignedDropdown: alignedDropdown,
layoutBehavior: layoutBehavior,
buttonColor: buttonColor,
disabledColor: disabledColor,
focusColor: focusColor,
hoverColor: hoverColor,
highlightColor: highlightColor,
splashColor: splashColor,
colorScheme: colorScheme,
),
super(key: key, child: child);
/// Specifies the color and geometry of buttons.
final ButtonThemeData data;
......
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