@@ -405,11 +405,6 @@ class ThemeData with Diagnosticable {
405405      'This feature was deprecated after v2.3.0-0.1.pre.' ,
406406    )
407407    IconThemeData ?  accentIconTheme,
408-     @Deprecated (
409-       'No longer used by the framework, please remove any reference to it. ' 
410-       'This feature was deprecated after v2.3.0-0.2.pre.' ,
411-     )
412-     Color ?  buttonColor,
413408    @Deprecated (
414409      'This "fix" is now enabled by default. ' 
415410      'This feature was deprecated after v2.5.0-1.0.pre.' ,
@@ -552,7 +547,7 @@ class ThemeData with Diagnosticable {
552547    // [disabledColor], [highlightColor], and [splashColor]. 
553548    buttonTheme ?? =  ButtonThemeData (
554549      colorScheme:  colorScheme,
555-       buttonColor:  buttonColor  ??  ( isDark ?  primarySwatch[600 ]!  :  Colors .grey[300 ]! ) ,
550+       buttonColor:  isDark ?  primarySwatch[600 ]!  :  Colors .grey[300 ]! ,
556551      disabledColor:  disabledColor,
557552      focusColor:  focusColor,
558553      hoverColor:  hoverColor,
@@ -637,7 +632,6 @@ class ThemeData with Diagnosticable {
637632    // DEPRECATED (newest deprecations at the bottom) 
638633    accentTextTheme =  defaultAccentTextTheme.merge (accentTextTheme);
639634    accentIconTheme ?? =  accentIsDark ?  const  IconThemeData (color:  Colors .white) :  const  IconThemeData (color:  Colors .black);
640-     buttonColor ?? =  isDark ?  primarySwatch[600 ]!  :  Colors .grey[300 ]! ;
641635    fixTextFieldOutlineLabel ?? =  true ;
642636    primaryColorBrightness =  estimatedPrimaryColorBrightness;
643637    errorColor ?? =  Colors .red[700 ]! ;
@@ -736,7 +730,6 @@ class ThemeData with Diagnosticable {
736730      accentColorBrightness:  accentColorBrightness,
737731      accentTextTheme:  accentTextTheme,
738732      accentIconTheme:  accentIconTheme,
739-       buttonColor:  buttonColor,
740733      fixTextFieldOutlineLabel:  fixTextFieldOutlineLabel,
741734      primaryColorBrightness:  primaryColorBrightness,
742735      androidOverscrollIndicator:  androidOverscrollIndicator,
@@ -874,11 +867,6 @@ class ThemeData with Diagnosticable {
874867      'This feature was deprecated after v2.3.0-0.1.pre.' ,
875868    )
876869    IconThemeData ?  accentIconTheme,
877-     @Deprecated (
878-       'No longer used by the framework, please remove any reference to it. ' 
879-       'This feature was deprecated after v2.3.0-0.2.pre.' ,
880-     )
881-     Color ?  buttonColor,
882870    @Deprecated (
883871      'This "fix" is now enabled by default. ' 
884872      'This feature was deprecated after v2.5.0-1.0.pre.' ,
@@ -928,7 +916,6 @@ class ThemeData with Diagnosticable {
928916       _accentColorBrightness =  accentColorBrightness,
929917       _accentTextTheme =  accentTextTheme,
930918       _accentIconTheme =  accentIconTheme,
931-        _buttonColor =  buttonColor,
932919       _fixTextFieldOutlineLabel =  fixTextFieldOutlineLabel,
933920       _primaryColorBrightness =  primaryColorBrightness,
934921       _toggleableActiveColor =  toggleableActiveColor,
@@ -1022,7 +1009,6 @@ class ThemeData with Diagnosticable {
10221009       assert (accentColorBrightness !=  null ),
10231010       assert (accentTextTheme !=  null ),
10241011       assert (accentIconTheme !=  null ),
1025-        assert (buttonColor !=  null ),
10261012       assert (fixTextFieldOutlineLabel !=  null ),
10271013       assert (primaryColorBrightness !=  null ),
10281014       assert (errorColor !=  null ),
@@ -1405,14 +1391,13 @@ class ThemeData with Diagnosticable {
14051391  /// The color of [Material]  when it is used as a [Card] . 
14061392final  Color  cardColor;
14071393
1408-   /// A set of twelve colors that can be used to configure the 
1409-   /// color properties of most components. 
1394+   /// {@macro flutter.material.color_scheme.ColorScheme} 
14101395  /// 
1411-   /// This property was added much later than the theme's set of highly 
1412-   /// specific  colors, like [cardColor] , [buttonColor]  ,  [ canvasColor] 
1413-   /// New components can be defined  exclusively in terms of [colorScheme] . 
1414-   /// Existing components will gradually  migrate to it, to the extent 
1415-   /// that is possible without significant  backwards compatibility breaks. 
1396+   /// This property was added much later than the theme's set of highly specific  
1397+   /// colors, like [cardColor] , [canvasColor]  etc. New components can be defined  
1398+   /// exclusively in terms of [colorScheme] . Existing components will gradually  
1399+   /// migrate to it, to the extent that is possible without significant  
1400+   /// backwards compatibility breaks. 
14161401final  ColorScheme  colorScheme;
14171402
14181403  /// The background color of [Dialog]  elements. 
@@ -1752,14 +1737,6 @@ class ThemeData with Diagnosticable {
17521737  IconThemeData  get  accentIconTheme =>  _accentIconTheme! ;
17531738  final  IconThemeData ?  _accentIconTheme;
17541739
1755-   /// The default fill color of the [Material] . 
1756- @Deprecated (
1757-     'No longer used by the framework, please remove any reference to it. ' 
1758-     'This feature was deprecated after v2.3.0-0.2.pre.' ,
1759-   )
1760-   Color  get  buttonColor =>  _buttonColor! ;
1761-   final  Color ?  _buttonColor;
1762- 
17631740  /// An obsolete flag to allow apps to opt-out of a 
17641741  /// [small fix] (https://github.com/flutter/flutter/issues/54028) for the Y 
17651742  /// coordinate of the floating label in a [TextField]  [OutlineInputBorder] . 
@@ -1971,11 +1948,6 @@ class ThemeData with Diagnosticable {
19711948      'This feature was deprecated after v2.3.0-0.1.pre.' ,
19721949    )
19731950    IconThemeData ?  accentIconTheme,
1974-     @Deprecated (
1975-       'No longer used by the framework, please remove any reference to it. ' 
1976-       'This feature was deprecated after v2.3.0-0.2.pre.' ,
1977-     )
1978-     Color ?  buttonColor,
19791951    @Deprecated (
19801952      'This "fix" is now enabled by default. ' 
19811953      'This feature was deprecated after v2.5.0-1.0.pre.' ,
@@ -2112,7 +2084,6 @@ class ThemeData with Diagnosticable {
21122084      accentColorBrightness:  accentColorBrightness ??  _accentColorBrightness,
21132085      accentTextTheme:  accentTextTheme ??  _accentTextTheme,
21142086      accentIconTheme:  accentIconTheme ??  _accentIconTheme,
2115-       buttonColor:  buttonColor ??  _buttonColor,
21162087      fixTextFieldOutlineLabel:  fixTextFieldOutlineLabel ??  _fixTextFieldOutlineLabel,
21172088      primaryColorBrightness:  primaryColorBrightness ??  _primaryColorBrightness,
21182089      androidOverscrollIndicator:  androidOverscrollIndicator ??  this .androidOverscrollIndicator,
@@ -2312,7 +2283,6 @@ class ThemeData with Diagnosticable {
23122283      accentColorBrightness:  t <  0.5  ?  a.accentColorBrightness :  b.accentColorBrightness,
23132284      accentTextTheme:  TextTheme .lerp (a.accentTextTheme, b.accentTextTheme, t),
23142285      accentIconTheme:  IconThemeData .lerp (a.accentIconTheme, b.accentIconTheme, t),
2315-       buttonColor:  Color .lerp (a.buttonColor, b.buttonColor, t),
23162286      fixTextFieldOutlineLabel:  t <  0.5  ?  a.fixTextFieldOutlineLabel :  b.fixTextFieldOutlineLabel,
23172287      primaryColorBrightness:  t <  0.5  ?  a.primaryColorBrightness :  b.primaryColorBrightness,
23182288      androidOverscrollIndicator: t <  0.5  ?  a.androidOverscrollIndicator :  b.androidOverscrollIndicator,
@@ -2421,7 +2391,6 @@ class ThemeData with Diagnosticable {
24212391        other.accentColorBrightness ==  accentColorBrightness && 
24222392        other.accentTextTheme ==  accentTextTheme && 
24232393        other.accentIconTheme ==  accentIconTheme && 
2424-         other.buttonColor ==  buttonColor && 
24252394        other.fixTextFieldOutlineLabel ==  fixTextFieldOutlineLabel && 
24262395        other.primaryColorBrightness ==  primaryColorBrightness && 
24272396        other.androidOverscrollIndicator ==  androidOverscrollIndicator && 
@@ -2527,7 +2496,6 @@ class ThemeData with Diagnosticable {
25272496      accentColorBrightness,
25282497      accentTextTheme,
25292498      accentIconTheme,
2530-       buttonColor,
25312499      fixTextFieldOutlineLabel,
25322500      primaryColorBrightness,
25332501      androidOverscrollIndicator,
@@ -2635,7 +2603,6 @@ class ThemeData with Diagnosticable {
26352603    properties.add (EnumProperty <Brightness >('accentColorBrightness' , accentColorBrightness, defaultValue:  defaultData.accentColorBrightness, level:  DiagnosticLevel .debug));
26362604    properties.add (DiagnosticsProperty <TextTheme >('accentTextTheme' , accentTextTheme, level:  DiagnosticLevel .debug));
26372605    properties.add (DiagnosticsProperty <IconThemeData >('accentIconTheme' , accentIconTheme, level:  DiagnosticLevel .debug));
2638-     properties.add (ColorProperty ('buttonColor' , buttonColor, defaultValue:  defaultData.buttonColor, level:  DiagnosticLevel .debug));
26392606    properties.add (DiagnosticsProperty <bool >('fixTextFieldOutlineLabel' , fixTextFieldOutlineLabel, level:  DiagnosticLevel .debug));
26402607    properties.add (EnumProperty <Brightness >('primaryColorBrightness' , primaryColorBrightness, defaultValue:  defaultData.primaryColorBrightness, level:  DiagnosticLevel .debug));
26412608    properties.add (EnumProperty <AndroidOverscrollIndicator >('androidOverscrollIndicator' , androidOverscrollIndicator, defaultValue:  null , level:  DiagnosticLevel .debug));
0 commit comments