Skip to content

Commit da7e5e3

Browse files
authored
Reset deprecation period for setPubRootDirectories (#139592)
This deprecation period is being renewed after we found it affected many IDE plugins that had not yet migrated, but did not receive a warning during the deprecation period. We also expected to have a migration guide since the migration is not always to simply rename to addPubRootDirectories. This will give another 1+ year for the migration to be completed. Part of flutter/flutter#139243 Will update announcement at flutter-announce to reflect this API will remain for a while longer.
1 parent 2b218fd commit da7e5e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/flutter/lib/src/widgets/service_extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ enum WidgetInspectorServiceExtensions {
216216
/// extension is registered.
217217
@Deprecated(
218218
'Use addPubRootDirectories instead. '
219-
'This feature was deprecated after v3.1.0-9.0.pre.',
219+
'This feature was deprecated after v3.18.0-2.0.pre.',
220220
)
221221
setPubRootDirectories,
222222

packages/flutter/lib/src/widgets/widget_inspector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ mixin WidgetInspectorService {
14861486
@protected
14871487
@Deprecated(
14881488
'Use addPubRootDirectories instead. '
1489-
'This feature was deprecated after v3.1.0-9.0.pre.',
1489+
'This feature was deprecated after v3.18.0-2.0.pre.',
14901490
)
14911491
void setPubRootDirectories(List<String> pubRootDirectories) {
14921492
addPubRootDirectories(pubRootDirectories);

0 commit comments

Comments
 (0)