Skip to content

Commit

Permalink
Create placeholder SkillTreeView
Browse files Browse the repository at this point in the history
  • Loading branch information
hunteraraujo committed Sep 8, 2023
1 parent 97bd56b commit b00be97
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/lib/views/main_layout.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:auto_gpt_flutter_client/viewmodels/task_viewmodel.dart';
import 'package:auto_gpt_flutter_client/viewmodels/chat_viewmodel.dart';
import 'package:auto_gpt_flutter_client/views/side_bar_view.dart';
import 'package:auto_gpt_flutter_client/views/side_bar/side_bar_view.dart';
import 'package:auto_gpt_flutter_client/views/skill_tree/skill_tree_view.dart';
import 'package:auto_gpt_flutter_client/views/task/task_view.dart';
import 'package:auto_gpt_flutter_client/views/chat/chat_view.dart';
import 'package:flutter/cupertino.dart';
Expand Down Expand Up @@ -35,7 +36,7 @@ class MainLayout extends StatelessWidget {
return SizedBox(
width: 280, child: TaskView(viewModel: taskViewModel));
} else {
return Expanded(child: Text("SkillTreeView")); // placeholder
return const Expanded(child: SkillTreeView());
}
},
),
Expand Down
21 changes: 21 additions & 0 deletions frontend/lib/views/skill_tree/skill_tree_view.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import 'package:flutter/material.dart';

class SkillTreeView extends StatelessWidget {
const SkillTreeView({super.key});

@override
Widget build(BuildContext context) {
return Container(
color: Colors.blue[100], // Background color
child: const Center(
child: Text(
'SkillTreeView',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
),
);
}
}

0 comments on commit b00be97

Please sign in to comment.