From da7e5e34185717a562b6009bff988b0d612be531 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Thu, 7 Dec 2023 10:16:08 -0600 Subject: [PATCH] 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 https://github.com/flutter/flutter/issues/139243 Will update announcement at flutter-announce to reflect this API will remain for a while longer. --- packages/flutter/lib/src/widgets/service_extensions.dart | 2 +- packages/flutter/lib/src/widgets/widget_inspector.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/service_extensions.dart b/packages/flutter/lib/src/widgets/service_extensions.dart index f1bb531970..cb0e165c1a 100644 --- a/packages/flutter/lib/src/widgets/service_extensions.dart +++ b/packages/flutter/lib/src/widgets/service_extensions.dart @@ -216,7 +216,7 @@ enum WidgetInspectorServiceExtensions { /// extension is registered. @Deprecated( 'Use addPubRootDirectories instead. ' - 'This feature was deprecated after v3.1.0-9.0.pre.', + 'This feature was deprecated after v3.18.0-2.0.pre.', ) setPubRootDirectories, diff --git a/packages/flutter/lib/src/widgets/widget_inspector.dart b/packages/flutter/lib/src/widgets/widget_inspector.dart index d6e3580eef..8c80beadc4 100644 --- a/packages/flutter/lib/src/widgets/widget_inspector.dart +++ b/packages/flutter/lib/src/widgets/widget_inspector.dart @@ -1486,7 +1486,7 @@ mixin WidgetInspectorService { @protected @Deprecated( 'Use addPubRootDirectories instead. ' - 'This feature was deprecated after v3.1.0-9.0.pre.', + 'This feature was deprecated after v3.18.0-2.0.pre.', ) void setPubRootDirectories(List pubRootDirectories) { addPubRootDirectories(pubRootDirectories);