Skip to content

Commit

Permalink
Move SIdeBarView to new directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hunteraraujo committed Sep 8, 2023
1 parent 4c302e8 commit 97bd56b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -20,15 +20,15 @@ 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(
splashRadius: 0.1,
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',
),
Expand Down

0 comments on commit 97bd56b

Please sign in to comment.