Add link to package directory Docs (#6825)
diff --git a/packages/devtools_app/lib/src/screens/inspector/inspector_screen.dart b/packages/devtools_app/lib/src/screens/inspector/inspector_screen.dart
index 98017b4..14f0def 100644
--- a/packages/devtools_app/lib/src/screens/inspector/inspector_screen.dart
+++ b/packages/devtools_app/lib/src/screens/inspector/inspector_screen.dart
@@ -20,6 +20,7 @@
 import '../../shared/error_badge_manager.dart';
 import '../../shared/globals.dart';
 import '../../shared/primitives/blocking_action_mixin.dart';
+import '../../shared/primitives/simple_items.dart';
 import '../../shared/screen.dart';
 import '../../shared/ui/search.dart';
 import '../../shared/utils.dart';
@@ -360,9 +361,20 @@
               'Widgets in these directories will show up in your summary tree.',
               style: theme.subtleTextStyle,
             ),
-            Text(
-              '(e.g. /absolute/path/to/myPackage)',
-              style: theme.subtleTextStyle,
+            Row(
+              mainAxisAlignment: MainAxisAlignment.spaceBetween,
+              children: [
+                Text(
+                  '(e.g. /absolute/path/to/myPackage)',
+                  style: theme.subtleTextStyle,
+                ),
+                MoreInfoLink(
+                  url: DocLinks.inspectorPackageDirectories.value,
+                  gaScreenName: gac.inspector,
+                  gaSelectedItemDescription:
+                      gac.InspectorDocs.packageDirectoriesDocs.name,
+                ),
+              ],
             ),
             const SizedBox(height: denseSpacing),
             const Expanded(
diff --git a/packages/devtools_app/lib/src/shared/analytics/constants.dart b/packages/devtools_app/lib/src/shared/analytics/constants.dart
index c51c3d5..df77f43 100644
--- a/packages/devtools_app/lib/src/shared/analytics/constants.dart
+++ b/packages/devtools_app/lib/src/shared/analytics/constants.dart
@@ -9,6 +9,7 @@
 part 'constants/_memory_constants.dart';
 part 'constants/_performance_constants.dart';
 part 'constants/_vs_code_sidebar_constants.dart';
+part 'constants/_inspector_constants.dart';
 
 // Type of events (event_category):
 const screenViewEvent = 'screen'; // Active screen (tab selected).
diff --git a/packages/devtools_app/lib/src/shared/analytics/constants/_inspector_constants.dart b/packages/devtools_app/lib/src/shared/analytics/constants/_inspector_constants.dart
new file mode 100644
index 0000000..9b38c3f
--- /dev/null
+++ b/packages/devtools_app/lib/src/shared/analytics/constants/_inspector_constants.dart
@@ -0,0 +1,10 @@
+// Copyright 2023 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+part of '../constants.dart';
+
+/// Events for opening documentation for the inspector tab.
+enum InspectorDocs {
+  packageDirectoriesDocs;
+}
diff --git a/packages/devtools_app/lib/src/shared/primitives/simple_items.dart b/packages/devtools_app/lib/src/shared/primitives/simple_items.dart
index 6ff6a6c..77ec042 100644
--- a/packages/devtools_app/lib/src/shared/primitives/simple_items.dart
+++ b/packages/devtools_app/lib/src/shared/primitives/simple_items.dart
@@ -35,6 +35,7 @@
     'https://docs.flutter.dev/development/tools/devtools/memory';
 const _consoleDocUrl =
     'https://docs.flutter.dev/development/tools/devtools/console';
+const _inspectorDocUrl = 'https://docs.flutter.dev/tools/devtools/inspector';
 
 /// Some links to documentation.
 ///
@@ -45,7 +46,7 @@
   diff(_memoryDocUrl, 'diff-snapshots-tab'),
   trace(_memoryDocUrl, 'trace-instances-tab'),
   console(_consoleDocUrl, null),
-  ;
+  inspectorPackageDirectories(_inspectorDocUrl, 'package-directories');
 
   const DocLinks(this.url, this.hash);
 
diff --git a/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md b/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md
index 27be0c5..304603b 100644
--- a/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md
+++ b/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md
@@ -14,6 +14,7 @@
 
 ## Inspector updates
 
+* Added link to package directory documentation, from the inspect settings dialog - [6825](https://github.com/flutter/devtools/pull/6825)
 * Fix bug where widgets owned by the Flutter framework were showing up in the widget tree view -
 [6857](https://github.com/flutter/devtools/pull/6857)