Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Add Settings Tab to SideBarView

hunteraraujo9d1b23547215
diff --git a/frontend/lib/views/side_bar/side_bar_view.dart b/frontend/lib/views/side_bar/side_bar_view.dart
index 9fc9e3daad..b7545f8495 100644
--- a/frontend/lib/views/side_bar/side_bar_view.dart
+++ b/frontend/lib/views/side_bar/side_bar_view.dart
@@ -35,11 +35,20 @@ class SideBarView extends StatelessWidget {
color: selectedView == 'SkillTreeView'
? Colors.blue
: Colors.black,
- icon: const Icon(Icons.emoji_events), // trophy icon
+ icon: const Icon(Icons.emoji_events),
onPressed: skillTreeViewModel.isBenchmarkRunning
? null
: () => selectedViewNotifier.value = 'SkillTreeView',
),
+ IconButton(
+ splashRadius: 0.1,
+ color: selectedView == 'SettingsView'
+ ? Colors.blue
+ : Colors.black,
+ icon: const Icon(Icons.settings),
+ onPressed: () =>
+ selectedViewNotifier.value = 'SettingsView',
+ ),
],
),
);