Commit 7ee6ebcb authored by Uditha Prabhasha 's avatar Uditha Prabhasha

Update games.dart

parent 8d4d835b
...@@ -37,14 +37,12 @@ class GamesPage extends StatelessWidget { ...@@ -37,14 +37,12 @@ class GamesPage extends StatelessWidget {
], ],
selectedItemColor: Colors.blue, selectedItemColor: Colors.blue,
unselectedItemColor: Colors.grey, unselectedItemColor: Colors.grey,
currentIndex: 2,
onTap: (index) { onTap: (index) {
switch (index) { switch (index) {
case 0: case 0:
// Navigate to Home // Navigate to Home
Navigator.push(
context,
MaterialPageRoute(builder: (context) => AddClassroomPage()),
);
break; break;
case 1: case 1:
// Navigate to Chat // Navigate to Chat
...@@ -58,10 +56,7 @@ class GamesPage extends StatelessWidget { ...@@ -58,10 +56,7 @@ class GamesPage extends StatelessWidget {
break; break;
case 3: case 3:
// Navigate to Profile // Navigate to Profile
Navigator.push(
context,
MaterialPageRoute(builder: (context) => TeacherProfilePage()),
);
break; break;
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment