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.

Move SIdeBarView to new directory

hunteraraujo97bd56b26314
diff --git a/frontend/lib/views/side_bar_view.dart b/frontend/lib/views/side_bar/side_bar_view.dart
similarity index 86%
rename from frontend/lib/views/side_bar_view.dart
rename to frontend/lib/views/side_bar/side_bar_view.dart
index f0f595e80d..6ef043abc2 100644
--- a/frontend/lib/views/side_bar_view.dart
+++ b/frontend/lib/views/side_bar/side_bar_view.dart
@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class SideBarView extends StatelessWidget {
final ValueNotifier<String> selectedViewNotifier;
- SideBarView({required this.selectedViewNotifier});
+ const SideBarView({super.key, required this.selectedViewNotifier});
@override
Widget build(BuildContext context) {
@@ -20,7 +20,7 @@ class SideBarView extends StatelessWidget {
splashRadius: 0.1,
color:
selectedView == 'TaskView' ? Colors.blue : Colors.black,
- icon: Icon(Icons.chat),
+ icon: const Icon(Icons.chat),
onPressed: () => selectedViewNotifier.value = 'TaskView',
),
IconButton(
@@ -28,7 +28,7 @@ class SideBarView extends StatelessWidget {
color: selectedView == 'SkillTreeView'
? Colors.blue
: Colors.black,
- icon: Icon(Icons.emoji_events), // trophy icon
+ icon: const Icon(Icons.emoji_events), // trophy icon
onPressed: () =>
selectedViewNotifier.value = 'SkillTreeView',
),