Skip to content

Commit da4e405

Browse files
authored
Add missing deprecation notice for toggleableActiveColor (#111707)
1 parent e89e682 commit da4e405

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

‎packages/flutter/lib/src/material/theme_data.dart‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class ThemeData with Diagnosticable {
413413
'No longer used by the framework, please remove any reference to it. '
414414
'For more information, consult the migration guide at '
415415
'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
416-
'This feature was deprecated after v2.13.0-0.4.pre.',
416+
'This feature was deprecated after v3.4.0-19.0.pre.',
417417
)
418418
Color? toggleableActiveColor,
419419
@Deprecated(
@@ -846,7 +846,7 @@ class ThemeData with Diagnosticable {
846846
'No longer used by the framework, please remove any reference to it. '
847847
'For more information, consult the migration guide at '
848848
'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
849-
'This feature was deprecated after v2.13.0-0.4.pre.',
849+
'This feature was deprecated after v3.4.0-19.0.pre.',
850850
)
851851
Color? toggleableActiveColor,
852852
@Deprecated(
@@ -1420,11 +1420,6 @@ class ThemeData with Diagnosticable {
14201420
/// * [splashFactory], which defines the appearance of the splash.
14211421
final Color splashColor;
14221422

1423-
/// The color used to highlight the active states of toggleable widgets like
1424-
/// [Switch], [Radio], and [Checkbox].
1425-
Color get toggleableActiveColor => _toggleableActiveColor!;
1426-
final Color? _toggleableActiveColor;
1427-
14281423
/// The color used for widgets in their inactive (but enabled)
14291424
/// state. For example, an unchecked checkbox. See also [disabledColor].
14301425
final Color unselectedWidgetColor;
@@ -1734,6 +1729,17 @@ class ThemeData with Diagnosticable {
17341729
Color get backgroundColor => _backgroundColor!;
17351730
final Color? _backgroundColor;
17361731

1732+
/// The color used to highlight the active states of toggleable widgets like
1733+
/// [Switch], [Radio], and [Checkbox].
1734+
@Deprecated(
1735+
'No longer used by the framework, please remove any reference to it. '
1736+
'For more information, consult the migration guide at '
1737+
'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
1738+
'This feature was deprecated after v3.4.0-19.0.pre.',
1739+
)
1740+
Color get toggleableActiveColor => _toggleableActiveColor!;
1741+
final Color? _toggleableActiveColor;
1742+
17371743
/// Creates a copy of this theme but with the given fields replaced with the new values.
17381744
///
17391745
/// The [brightness] value is applied to the [colorScheme].
@@ -1874,7 +1880,7 @@ class ThemeData with Diagnosticable {
18741880
'No longer used by the framework, please remove any reference to it. '
18751881
'For more information, consult the migration guide at '
18761882
'https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide. '
1877-
'This feature was deprecated after v2.13.0-0.4.pre.',
1883+
'This feature was deprecated after v3.4.0-19.0.pre.',
18781884
)
18791885
Color? toggleableActiveColor,
18801886
@Deprecated(

0 commit comments

Comments
 (0)