Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions packages/devtools_app/lib/src/framework/scaffold/scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:provider/provider.dart';
import '../../app.dart';
import '../../extensions/extension_settings.dart';
import '../../screens/debugger/debugger_screen.dart';
import '../../shared/ai_assistant/widgets/ai_assistant_pane.dart';
import '../../shared/analytics/prompt.dart';
import '../../shared/config_specific/drag_and_drop/drag_and_drop.dart';
import '../../shared/config_specific/import_export/import_export.dart';
Expand Down Expand Up @@ -317,11 +316,6 @@ class DevToolsScaffoldState extends State<DevToolsScaffold>
!offlineDataController.showingOfflineData.value;
final showConsole =
isConnectedAppView && _currentScreen.showConsole(widget.embedMode);
final showAiAssistant =
FeatureFlags.aiAssistant.isEnabled &&
isConnectedAppView &&
_currentScreen.showAiAssistant();
final showBottomPane = showConsole || showAiAssistant;
final containsSingleSimpleScreen =
widget.screens.length == 1 && widget.screens.first is SimpleScreen;
final showAppBar =
Expand Down Expand Up @@ -353,7 +347,7 @@ class DevToolsScaffoldState extends State<DevToolsScaffold>
body: OutlineDecoration.onlyTop(
child: Padding(
padding: widget.appPadding,
child: showBottomPane
child: showConsole
? SplitPane(
axis: Axis.vertical,
initialFractions: const [0.8, 0.2],
Expand All @@ -367,10 +361,7 @@ class DevToolsScaffoldState extends State<DevToolsScaffold>
content,
BottomPane(
screenId: _currentScreen.screenId,
tabs: [
if (showConsole) const ConsolePane(),
if (showAiAssistant) const AiAssistantPane(),
],
tabs: const [ConsolePane()],
),
Comment thread
elliette marked this conversation as resolved.
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class InspectorScreen extends Screen {
@override
bool showConsole(EmbedMode embedMode) => !embedMode.embedded;

@override
bool showAiAssistant() => true;

@override
String get docPageId => screenId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class NetworkScreen extends Screen {
@override
String get docPageId => screenId;

@override
bool showAiAssistant() => true;

@override
Widget buildScreenBody(BuildContext context) => const NetworkScreenBody();

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions packages/devtools_app/lib/src/shared/feature_flags.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@ extension FeatureFlags on Never {
enabled: true,
);

/// Flag to enable the AI Assistant.
///
/// https://github.com/flutter/devtools/issues/9590
static final aiAssistant = BooleanFeatureFlag(
name: 'aiAssistant',
enabled: enableExperiments,
);

/// A set of all the boolean feature flags for debugging purposes.
///
/// When adding a new boolean flag, you are responsible for adding it to this
Expand All @@ -94,7 +86,6 @@ extension FeatureFlags on Never {
devToolsExtensions,
dapDebugging,
inspectorV2,
aiAssistant,
};

/// A set of all the Flutter channel feature flags for debugging purposes.
Expand Down
3 changes: 0 additions & 3 deletions packages/devtools_app/lib/src/shared/framework/screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,6 @@ abstract class Screen {
/// Whether to show the console for this screen.
bool showConsole(EmbedMode embedMode) => false;

/// Whether to show the AI Assistant for this screen.
bool showAiAssistant() => false;

/// Which keyboard shortcuts should be enabled for this screen.
ShortcutsConfiguration buildKeyboardShortcuts(BuildContext context) =>
ShortcutsConfiguration.empty();
Expand Down
Loading
Loading