Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Merge remote-tracking branch 'origin/main' into feat/web

Dev jacobbde7ac20f96c
diff --cc desktop/lib/settings/settings_body.dart
index 5b375ed4a,000000000..b9179fb02
mode 100644,000000..100644
--- a/desktop/lib/settings/settings_body.dart
+++ b/desktop/lib/settings/settings_body.dart
@@@ -1,53 -1,0 +1,55 @@@
+import 'package:flutter/material.dart';
+
+import '../state/app_state.dart';
+import 'experimental_features.dart';
+import 'sections/about_section.dart';
+import 'sections/account_section.dart';
++import 'sections/profiles_section.dart';
+import 'sections/debug_section.dart';
+import 'sections/devices_section.dart';
+import 'sections/experimental_section.dart';
+import 'sections/notifications_section.dart';
+import 'sections/shortcuts_section.dart';
+import 'sections/tracking_section.dart';
+import 'sections/usage_section.dart';
+import 'settings_section.dart';
+
+/// The screen behind a [SettingsSection].
+///
+/// Switch immediately, disposing the previous section instead of retaining it
+/// for a cross-fade while the new section starts its work.
+class SettingsBody extends StatelessWidget {
+ const SettingsBody({
+ super.key,
+ required this.section,
+ required this.notifier,
+ this.experimentalFeatures,
+ });
+
+ final SettingsSection section;
+ final AppNotifier notifier;
+ final ExperimentalFeaturesStore? experimentalFeatures;
+
+ @override
+ Widget build(BuildContext context) {
+ final screen = switch (section) {
+ SettingsSection.account => AccountSection(notifier: notifier),
++ SettingsSection.profiles => ProfilesSection(notifier: notifier),
+ SettingsSection.usage => const UsageSection(),
+ SettingsSection.customize => throw StateError(
+ 'Customization opens over the workspace.',
+ ),
+ SettingsSection.notifications => const NotificationsSection(),
+ SettingsSection.experimental => ExperimentalSection(
+ store: experimentalFeatures ?? notifier.experimentalFeatures,
+ controller: notifier.swarmSettings,
+ ),
+ SettingsSection.devices => const DevicesSection(),
+ SettingsSection.shortcuts => const ShortcutsSection(),
+ SettingsSection.debug => const DebugSection(),
+ SettingsSection.tracking => const TrackingSection(),
+ SettingsSection.about => AboutSection(notifier: notifier),
+ };
+ return KeyedSubtree(key: ValueKey(section), child: screen);
+ }
+}