Skip to content

Commit 93fb582

Browse files
authored
Update year2023 flag deprecation message (#162607)
Fixes [Improve `year2023` flag deprecation message](flutter/flutter#162606) ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [ ] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
1 parent 0e1df62 commit 93fb582

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

packages/flutter/lib/src/material/progress_indicator.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ class LinearProgressIndicator extends ProgressIndicator {
343343
this.stopIndicatorRadius,
344344
this.trackGap,
345345
@Deprecated(
346-
'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
346+
'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
347+
'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
347348
'This feature was deprecated after v3.26.0-0.1.pre.',
348349
)
349350
this.year2023,
@@ -420,7 +421,8 @@ class LinearProgressIndicator extends ProgressIndicator {
420421
///
421422
/// If [ThemeData.useMaterial3] is false, then this property is ignored.
422423
@Deprecated(
423-
'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
424+
'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
425+
'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
424426
'This feature was deprecated after v3.27.0-0.1.pre.',
425427
)
426428
final bool? year2023;
@@ -719,7 +721,8 @@ class CircularProgressIndicator extends ProgressIndicator {
719721
this.constraints,
720722
this.trackGap,
721723
@Deprecated(
722-
'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
724+
'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
725+
'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
723726
'This feature was deprecated after v3.27.0-0.1.pre.',
724727
)
725728
this.year2023,
@@ -749,7 +752,8 @@ class CircularProgressIndicator extends ProgressIndicator {
749752
this.constraints,
750753
this.trackGap,
751754
@Deprecated(
752-
'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
755+
'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
756+
'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
753757
'This feature was deprecated after v3.27.0-0.2.pre.',
754758
)
755759
this.year2023,
@@ -832,7 +836,8 @@ class CircularProgressIndicator extends ProgressIndicator {
832836
///
833837
/// If [ThemeData.useMaterial3] is false, then this property is ignored.
834838
@Deprecated(
835-
'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
839+
'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
840+
'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
836841
'This feature was deprecated after v3.27.0-0.2.pre.',
837842
)
838843
final bool? year2023;

packages/flutter/lib/src/material/progress_indicator_theme.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class ProgressIndicatorThemeData with Diagnosticable {
4949
this.trackGap,
5050
this.circularTrackPadding,
5151
@Deprecated(
52-
'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
52+
'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
53+
'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
5354
'This feature was deprecated after v3.27.0-0.2.pre.',
5455
)
5556
this.year2023,
@@ -131,7 +132,8 @@ class ProgressIndicatorThemeData with Diagnosticable {
131132
///
132133
/// If [ThemeData.useMaterial3] is false, then this property is ignored.
133134
@Deprecated(
134-
'Use ProgressIndicatorTheme to customize the ProgressIndicator appearance. '
135+
'Set this flag to false to opt into the 2024 progress indicator appearance. Defaults to true. '
136+
'In the future, this flag will default to false. Use ProgressIndicatorThemeData to customize individual properties. '
135137
'This feature was deprecated after v3.27.0-0.2.pre.',
136138
)
137139
final bool? year2023;

packages/flutter/lib/src/material/slider.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ class Slider extends StatefulWidget {
239239
this.autofocus = false,
240240
this.allowedInteraction,
241241
@Deprecated(
242-
'Use SliderTheme to customize the Slider appearance. '
242+
'Set this flag to false to opt into the 2024 slider appearance. Defaults to true. '
243+
'In the future, this flag will default to false. Use SliderThemeData to customize individual properties. '
243244
'This feature was deprecated after v3.27.0-0.1.pre.',
244245
)
245246
this.year2023,
@@ -573,7 +574,8 @@ class Slider extends StatefulWidget {
573574
///
574575
/// If [ThemeData.useMaterial3] is false, then this property is ignored.
575576
@Deprecated(
576-
'Use SliderTheme to customize the Slider appearance. '
577+
'Set this flag to false to opt into the 2024 slider appearance. Defaults to true. '
578+
'In the future, this flag will default to false. Use SliderThemeData to customize individual properties. '
577579
'This feature was deprecated after v3.27.0-0.1.pre.',
578580
)
579581
final bool? year2023;

packages/flutter/lib/src/material/slider_theme.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ class SliderThemeData with Diagnosticable {
298298
this.thumbSize,
299299
this.trackGap,
300300
@Deprecated(
301-
'Use SliderTheme to customize the Slider appearance. '
301+
'Set this flag to false to opt into the 2024 slider appearance. Defaults to true. '
302+
'In the future, this flag will default to false. Use SliderThemeData to customize individual properties. '
302303
'This feature was deprecated after v3.27.0-0.2.pre.',
303304
)
304305
this.year2023,
@@ -637,7 +638,8 @@ class SliderThemeData with Diagnosticable {
637638
///
638639
/// If [ThemeData.useMaterial3] is false, then this property is ignored.
639640
@Deprecated(
640-
'Use SliderTheme to customize the Slider appearance. '
641+
'Set this flag to false to opt into the 2024 slider appearance. Defaults to true. '
642+
'In the future, this flag will default to false. Use SliderThemeData to customize individual properties. '
641643
'This feature was deprecated after v3.27.0-0.2.pre.',
642644
)
643645
final bool? year2023;

0 commit comments

Comments
 (0)