Skip to content

Commit 1946e04

Browse files
committed
Remove AI experiment and panel
1 parent 50bfb73 commit 1946e04

10 files changed

Lines changed: 2 additions & 449 deletions

File tree

packages/devtools_app/lib/src/framework/scaffold/scaffold.dart

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import 'package:provider/provider.dart';
1111
import '../../app.dart';
1212
import '../../extensions/extension_settings.dart';
1313
import '../../screens/debugger/debugger_screen.dart';
14-
import '../../shared/ai_assistant/widgets/ai_assistant_pane.dart';
1514
import '../../shared/analytics/prompt.dart';
1615
import '../../shared/config_specific/drag_and_drop/drag_and_drop.dart';
1716
import '../../shared/config_specific/import_export/import_export.dart';
@@ -317,11 +316,7 @@ class DevToolsScaffoldState extends State<DevToolsScaffold>
317316
!offlineDataController.showingOfflineData.value;
318317
final showConsole =
319318
isConnectedAppView && _currentScreen.showConsole(widget.embedMode);
320-
final showAiAssistant =
321-
FeatureFlags.aiAssistant.isEnabled &&
322-
isConnectedAppView &&
323-
_currentScreen.showAiAssistant();
324-
final showBottomPane = showConsole || showAiAssistant;
319+
final showBottomPane = showConsole;
325320
final containsSingleSimpleScreen =
326321
widget.screens.length == 1 && widget.screens.first is SimpleScreen;
327322
final showAppBar =
@@ -367,10 +362,7 @@ class DevToolsScaffoldState extends State<DevToolsScaffold>
367362
content,
368363
BottomPane(
369364
screenId: _currentScreen.screenId,
370-
tabs: [
371-
if (showConsole) const ConsolePane(),
372-
if (showAiAssistant) const AiAssistantPane(),
373-
],
365+
tabs: [if (showConsole) const ConsolePane()],
374366
),
375367
],
376368
)

packages/devtools_app/lib/src/screens/inspector_v2/inspector_screen.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class InspectorScreen extends Screen {
2222
@override
2323
bool showConsole(EmbedMode embedMode) => !embedMode.embedded;
2424

25-
@override
26-
bool showAiAssistant() => true;
27-
2825
@override
2926
String get docPageId => screenId;
3027

packages/devtools_app/lib/src/screens/network/network_screen.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ class NetworkScreen extends Screen {
3939
@override
4040
String get docPageId => screenId;
4141

42-
@override
43-
bool showAiAssistant() => true;
44-
4542
@override
4643
Widget buildScreenBody(BuildContext context) => const NetworkScreenBody();
4744

packages/devtools_app/lib/src/shared/ai_assistant/ai_controller.dart

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/devtools_app/lib/src/shared/ai_assistant/ai_message_types.dart

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/devtools_app/lib/src/shared/ai_assistant/widgets/ai_assistant_pane.dart

Lines changed: 0 additions & 226 deletions
This file was deleted.

packages/devtools_app/lib/src/shared/feature_flags.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ extension FeatureFlags on Never {
7777
enabled: true,
7878
);
7979

80-
/// Flag to enable the AI Assistant.
81-
///
82-
/// https://github.com/flutter/devtools/issues/9590
83-
static final aiAssistant = BooleanFeatureFlag(
84-
name: 'aiAssistant',
85-
enabled: enableExperiments,
86-
);
87-
8880
/// A set of all the boolean feature flags for debugging purposes.
8981
///
9082
/// When adding a new boolean flag, you are responsible for adding it to this
@@ -94,7 +86,6 @@ extension FeatureFlags on Never {
9486
devToolsExtensions,
9587
dapDebugging,
9688
inspectorV2,
97-
aiAssistant,
9889
};
9990

10091
/// A set of all the Flutter channel feature flags for debugging purposes.

packages/devtools_app/lib/src/shared/framework/screen.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,6 @@ abstract class Screen {
290290
/// Whether to show the console for this screen.
291291
bool showConsole(EmbedMode embedMode) => false;
292292

293-
/// Whether to show the AI Assistant for this screen.
294-
bool showAiAssistant() => false;
295-
296293
/// Which keyboard shortcuts should be enabled for this screen.
297294
ShortcutsConfiguration buildKeyboardShortcuts(BuildContext context) =>
298295
ShortcutsConfiguration.empty();

0 commit comments

Comments
 (0)