@@ -367,13 +367,6 @@ class ThemeData with Diagnosticable {
367
367
ToggleButtonsThemeData ? toggleButtonsTheme,
368
368
TooltipThemeData ? tooltipTheme,
369
369
// DEPRECATED (newest deprecations at the bottom)
370
- @Deprecated (
371
- 'No longer used by the framework, please remove any reference to it. '
372
- 'For more information, consult the migration guide at '
373
- 'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
374
- 'This feature was deprecated after v3.4.0-19.0.pre.' ,
375
- )
376
- Color ? toggleableActiveColor,
377
370
@Deprecated (
378
371
'Use colorScheme.error instead. '
379
372
'This feature was deprecated after v3.3.0-0.5.pre.' ,
@@ -451,7 +444,6 @@ class ThemeData with Diagnosticable {
451
444
primaryColorLight ?? = isDark ? Colors .grey[500 ]! : primarySwatch[100 ]! ;
452
445
primaryColorDark ?? = isDark ? Colors .black : primarySwatch[700 ]! ;
453
446
final bool primaryIsDark = estimatedPrimaryColorBrightness == Brightness .dark;
454
- toggleableActiveColor ?? = isDark ? Colors .tealAccent[200 ]! : (colorScheme? .secondary ?? primarySwatch[600 ]! );
455
447
focusColor ?? = isDark ? Colors .white.withOpacity (0.12 ) : Colors .black.withOpacity (0.12 );
456
448
hoverColor ?? = isDark ? Colors .white.withOpacity (0.04 ) : Colors .black.withOpacity (0.04 );
457
449
shadowColor ?? = Colors .black;
@@ -657,7 +649,6 @@ class ThemeData with Diagnosticable {
657
649
toggleButtonsTheme: toggleButtonsTheme,
658
650
tooltipTheme: tooltipTheme,
659
651
// DEPRECATED (newest deprecations at the bottom)
660
- toggleableActiveColor: toggleableActiveColor,
661
652
errorColor: errorColor,
662
653
backgroundColor: backgroundColor,
663
654
);
@@ -766,13 +757,6 @@ class ThemeData with Diagnosticable {
766
757
required this .toggleButtonsTheme,
767
758
required this .tooltipTheme,
768
759
// DEPRECATED (newest deprecations at the bottom)
769
- @Deprecated (
770
- 'No longer used by the framework, please remove any reference to it. '
771
- 'For more information, consult the migration guide at '
772
- 'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
773
- 'This feature was deprecated after v3.4.0-19.0.pre.' ,
774
- )
775
- Color ? toggleableActiveColor,
776
760
@Deprecated (
777
761
'Use colorScheme.error instead. '
778
762
'This feature was deprecated after v3.3.0-0.5.pre.' ,
@@ -786,10 +770,8 @@ class ThemeData with Diagnosticable {
786
770
787
771
}) : // DEPRECATED (newest deprecations at the bottom)
788
772
// should not be `required`, use getter pattern to avoid breakages.
789
- _toggleableActiveColor = toggleableActiveColor,
790
773
_errorColor = errorColor,
791
774
_backgroundColor = backgroundColor,
792
- assert (toggleableActiveColor != null ),
793
775
// DEPRECATED (newest deprecations at the bottom)
794
776
assert (errorColor != null ),
795
777
assert (backgroundColor != null );
@@ -1469,17 +1451,6 @@ class ThemeData with Diagnosticable {
1469
1451
Color get backgroundColor => _backgroundColor! ;
1470
1452
final Color ? _backgroundColor;
1471
1453
1472
- /// The color used to highlight the active states of toggleable widgets like
1473
- /// [Switch] , [Radio] , and [Checkbox] .
1474
- @Deprecated (
1475
- 'No longer used by the framework, please remove any reference to it. '
1476
- 'For more information, consult the migration guide at '
1477
- 'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
1478
- 'This feature was deprecated after v3.4.0-19.0.pre.' ,
1479
- )
1480
- Color get toggleableActiveColor => _toggleableActiveColor! ;
1481
- final Color ? _toggleableActiveColor;
1482
-
1483
1454
/// Creates a copy of this theme but with the given fields replaced with the new values.
1484
1455
///
1485
1456
/// The [brightness] value is applied to the [colorScheme] .
@@ -1579,13 +1550,6 @@ class ThemeData with Diagnosticable {
1579
1550
ToggleButtonsThemeData ? toggleButtonsTheme,
1580
1551
TooltipThemeData ? tooltipTheme,
1581
1552
// DEPRECATED (newest deprecations at the bottom)
1582
- @Deprecated (
1583
- 'No longer used by the framework, please remove any reference to it. '
1584
- 'For more information, consult the migration guide at '
1585
- 'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
1586
- 'This feature was deprecated after v3.4.0-19.0.pre.' ,
1587
- )
1588
- Color ? toggleableActiveColor,
1589
1553
@Deprecated (
1590
1554
'Use colorScheme.error instead. '
1591
1555
'This feature was deprecated after v3.3.0-0.5.pre.' ,
@@ -1701,7 +1665,6 @@ class ThemeData with Diagnosticable {
1701
1665
toggleButtonsTheme: toggleButtonsTheme ?? this .toggleButtonsTheme,
1702
1666
tooltipTheme: tooltipTheme ?? this .tooltipTheme,
1703
1667
// DEPRECATED (newest deprecations at the bottom)
1704
- toggleableActiveColor: toggleableActiveColor ?? _toggleableActiveColor,
1705
1668
errorColor: errorColor ?? _errorColor,
1706
1669
backgroundColor: backgroundColor ?? _backgroundColor,
1707
1670
);
@@ -1898,7 +1861,6 @@ class ThemeData with Diagnosticable {
1898
1861
toggleButtonsTheme: ToggleButtonsThemeData .lerp (a.toggleButtonsTheme, b.toggleButtonsTheme, t)! ,
1899
1862
tooltipTheme: TooltipThemeData .lerp (a.tooltipTheme, b.tooltipTheme, t)! ,
1900
1863
// DEPRECATED (newest deprecations at the bottom)
1901
- toggleableActiveColor: Color .lerp (a.toggleableActiveColor, b.toggleableActiveColor, t),
1902
1864
errorColor: Color .lerp (a.errorColor, b.errorColor, t),
1903
1865
backgroundColor: Color .lerp (a.backgroundColor, b.backgroundColor, t),
1904
1866
);
@@ -2002,7 +1964,6 @@ class ThemeData with Diagnosticable {
2002
1964
other.toggleButtonsTheme == toggleButtonsTheme &&
2003
1965
other.tooltipTheme == tooltipTheme &&
2004
1966
// DEPRECATED (newest deprecations at the bottom)
2005
- other.toggleableActiveColor == toggleableActiveColor &&
2006
1967
other.errorColor == errorColor &&
2007
1968
other.backgroundColor == backgroundColor;
2008
1969
}
@@ -2104,7 +2065,6 @@ class ThemeData with Diagnosticable {
2104
2065
toggleButtonsTheme,
2105
2066
tooltipTheme,
2106
2067
// DEPRECATED (newest deprecations at the bottom)
2107
- toggleableActiveColor,
2108
2068
errorColor,
2109
2069
backgroundColor,
2110
2070
];
@@ -2207,7 +2167,6 @@ class ThemeData with Diagnosticable {
2207
2167
properties.add (DiagnosticsProperty <ToggleButtonsThemeData >('toggleButtonsTheme' , toggleButtonsTheme, level: DiagnosticLevel .debug));
2208
2168
properties.add (DiagnosticsProperty <TooltipThemeData >('tooltipTheme' , tooltipTheme, level: DiagnosticLevel .debug));
2209
2169
// DEPRECATED (newest deprecations at the bottom)
2210
- properties.add (ColorProperty ('toggleableActiveColor' , toggleableActiveColor, defaultValue: defaultData.toggleableActiveColor, level: DiagnosticLevel .debug));
2211
2170
properties.add (ColorProperty ('errorColor' , errorColor, defaultValue: defaultData.errorColor, level: DiagnosticLevel .debug));
2212
2171
properties.add (ColorProperty ('backgroundColor' , backgroundColor, defaultValue: defaultData.backgroundColor, level: DiagnosticLevel .debug));
2213
2172
}
0 commit comments